CtlPanel.TAppletApplication.OnException
Delphi
property OnException: TOnAppletExceptionEvent read FOnException write FOnException;
C++
__property TOnAppletExceptionEvent OnException = {read=FOnException, write=FOnException};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | CTLPanel.pas CtlPanel.hpp |
CtlPanel | TAppletApplication |
Description
Occurs when an exception raised by the application is not handled.
Use OnException to change the default behavior that occurs when an exception is not handled by application code. If an exception passes through the try blocks in the application code, the application automatically calls the HandleException method. The HandleException method generates an OnException event when it encounters an exception that descends from Exception. If there is no OnException event handler, or if the Exception object does not descend from Exception, the applet displays a message box indicating an error occurred.