Wish LastException.Message

b4auser1

Well-Known Member
Licensed User
Longtime User
Please add method LastException.Message. I am porting code from B4A/B4J and have to add lots of #If #else to support common source for B4A/B4J/B4i when I am using catch with LastException.Message / LastException.Description. Until SQL 1.3 was released I had similar issue with Cursor/ResulSet.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It will be added.

Note that the way to handle it for now is with a global sub in a code module such as:
B4X:
Public Sub PrintLastException
#If B4i
 Log(LastException.Description)
#Else
 Log(LastException.Message)
#End If
End Sub

This way you only need to do it once. Another option is to just write Log(LastException). This is not a bad option at all as it will also work if there is no exception.
 
Top