RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAppletApplication.OnException Event

Occurs when an exception raised by the application is not handled.

Pascal
property OnException: TOnAppletExceptionEvent;
C++
__property TOnAppletExceptionEvent OnException;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!