[Overview][Types][Classes][Variables][Index] | Reference for unit 'CustApp' (#fcl)

# TCustomApplication.OnException

Exception handling event

## Declaration

Source position: custapp.pp line 92

`public property TCustomApplication.OnException : TExceptionEvent read FOnException write FOnException;`

## Description

OnException can be set to provide custom handling of exceptions, instead of the default action, which is simply to show the exception using ShowException.

If the event is set, then it is called by the HandleException routine. Do not use the OnException event directly, instead call HandleException.

## See also

ShowException |  | Show an exception to the user

Documentation generated on: May 14 2021