Does B4J have the ability to handle an error as is done in Visual Basic? eg:
B4X:
On Error GoTo Handler
Throw New DivideByZeroException()
Handler:
If (TypeOf Err.GetException() Is DivideByZeroException) Then
' Code for handling the error is entered here.
End If