Vcl.Forms.TApplication.HandleException
Delphi
procedure HandleException(Sender: TObject);
C++
void __fastcall HandleException(System::TObject* Sender);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Provides default handling of exceptions for the application.
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.
See Also
Code Examples