Does Xojo have an error explanation file?

VB was most helpful in the way it explained what caused and error and (in most cases) how to fix the problem. Maybe Xojo has this feature, but it is not evident. Can anybody direct me to an error explanation or the like if one exists.

Hhmm…Well, the exceptions names are pretty self explanatory. A nil object exception is an object was nil when it was accessed. Out of bounds exception, key not found exception and so on. In the application.unhandled exception event you should have a way to track the exception and the stack to figure out WHERE it happened.

Sadly, the information doesn’t go so far as to tell you what line it happened on. Because of this fact I tend to lean toward short methods. Nothing worse than trying to figure out which object was nil in a 2000 line method (I’ve had to debug other peoples code and this exact scenario came up).

We use this method to get the name of the exception for reporting purposes:

Private Function TypeOfException(err as runtimeexception) As string if err <> nil Then Return Introspection.GetType(err).FullName end if End Function

Then make sure you’re looking at the stack to figure out in what method it happened. http://documentation.xojo.com/index.php/RuntimeException.Stack

http://documentation.xojo.com/index.php/Category:Errors_Runtime_Errors
http://documentation.xojo.com/index.php/Category:Errors
http://documentation.xojo.com/index.php/Category:Errors_Error_Messages
http://documentation.xojo.com/index.php/Category:Errors_Error_Handling

[quote=116975:@Norman Palardy]
http://documentation.xojo.com/index.php/Category:Errors_Runtime_Errors
http://documentation.xojo.com/index.php/Category:Errors
http://documentation.xojo.com/index.php/Category:Errors_Error_Messages
http://documentation.xojo.com/index.php/Category:Errors_Error_Handling [/quote]

So Norman, is this the canuck way of telling me ‘you didnt look hard enough!!’
Thanks a million

“canuck” is an extremely verbose language - reminds my of objective C

http://documentation.xojo.com/index.php/Category:Errors_Runtime_Errors = R
http://documentation.xojo.com/index.php/Category:Errors = T
http://documentation.xojo.com/index.php/Category:Errors_Error_Messages = F
http://documentation.xojo.com/index.php/Category:Errors_Error_Handling = M

:slight_smile:

Just in other words: https://www.google.nl/search?q=savoir+vivre&client=firefox-a&hs=sGw&rls=org.mozilla:nl:official&channel=sb&tbm=isch&imgil=87oRjJnSZPweGM%3A%3Bhttps%3A%2F%2Fencrypted-tbn1.gstatic.com%2Fimages%3Fq%3Dtbn%3AANd9GcS9_CnriX53AWfv1jP2L47n9n2dbHPn5K6kDDCnJA7_AQ3pEFVa%3B460%3B335%3BbV9uvFDkKRl7HM%3Bhttp%253A%252F%252Fglobing-troting.blog.pl%252F%253Ftag%25253Dsavoir-vivre&source=iu&usg=__rlFm7omq8OndGMo43GqbU3jiSqg%3D&sa=X&ei=vSTeU6aLIYa8Pdy3gNAG&ved=0CEkQ9QEwCQ&biw=1276&bih=906#facrc=&imgdii=&imgrc=87oRjJnSZPweGM%253A%3BbV9uvFDkKRl7HM%3Bhttp%253A%252F%252Fglobing-troting.blog.pl%252Ffiles%252F2013%252F06%252Fhot_2007_10-74.jpg%3Bhttp%253A%252F%252Fglobing-troting.blog.pl%252F%253Ftag%253Dsavoir-vivre%3B460%3B335

Sorry Andre, I must have missed the joke. How does the slang word for Canadian relate to the link to Polish cartoons?