RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.HandleException Method

Provides default handling of exceptions for the application.

Pascal
procedure HandleException(Sender: TObject);
C++
__fastcall HandleException(TObject * Sender);

If an exception passes through all the try blocks in the application code, the application automatically calls HandleException, which displays a dialog box indicating an error occurred. Unless the exception object is EAbort, HandleException calls the OnException event handler, if one exists. Otherwise, it calls ShowException to display a message dialog box indicating an error occurred. 

To assign other exception handling code for the application, use the OnException event handler. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!