From Xojo Documentation


ConsoleApplication.UnhandledException(error as RuntimeException) As Boolean

Supported for all project types and targets.

Occurs when a RuntimeException occurs that is not otherwise handled.


This event allows you to do any last-minute clean-up, but the application does not resume after this event. The application terminates after this event.

The UnhandledException event returns a Boolean. By default, the application writes an error message to stderr. Return True to suppress output to stderr.