CtlPanel.TAppletApplication.HandleException
Delphi
procedure HandleException(Sender: TObject);
C++
void __fastcall HandleException(System::TObject* Sender);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | CTLPanel.pas CtlPanel.hpp |
CtlPanel | TAppletApplication |
Description
Responds to exceptions that are not caught by a try block in the application.
HandleException is called automatically when an exception is not caught by any of the try blocks in the application code. It calls the global ExceptObject function to obtain the exception object.
If ExceptObject is Exception or one of its descendants, HandleException generates an OnException event.
If ExceptObject is not an Exception descendant, or if there is no OnException event handler, HandleException calls the global ShowException method to display a message box that indicates what exception occurred.
Sender is the object that raised the exception.