RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAppletApplication.HandleException Method

Responds to exceptions that are not caught by a try block in the application.

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

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. 

 

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