From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.