WebApplication.UnhandledException

From Xojo Documentation

Event


WebApplication.UnhandledException(Error as RuntimeException) As Boolean

New in 2010r4

Supported for all project types and targets.

Receives otherwise missed exceptions — exceptions that could have been caught in Try...Catch or Exception statements using one of the Runtime exception handlers.

Notes

If the appropriate Exception statement is missing, the runtime exception error triggers this event and allows you to handle exceptions here.

Returns a Boolean. If it returns True, the standard alert indicating an unhandled exception and quit behavior are suppressed. Return False to allow the default unhandled exception error processing to occur.

The standard behavior is to display a dialog indicating an error occurred. The dialog has a place for the user to enter additional information an optionally click "Send" with the information.

If the User clicks "Send", you can get access to the specific error in WebSession.JavaScriptError. The error is also written to an errors.log file alongside the web application.

Session is not available from this event handler.

See Also

RuntimeException class, Try...Catch, Exception statements