Basic4android uses Try... Catch... End Try blocks.
For example:
Try
Dim in As InputStream
in = File.OpenInput(File.DirInternal, "SomeMissingFile.txt")
'...
Catch
Log(LastException)
End Try
If in.IsInitialized Then in.Close
When an exception is raised inside the Try... Catch block, the execution of this block stops and it continues in the Catch... End Try block. If no exception is raised then the Catch... End Try will not be executed.
You can use the LastException predefined object to get more information about the exception.