RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiModuleWebAppServices.HandleException Method

Responds to any exceptions not caught by the WebSnap application.

Pascal
procedure HandleException(E: Exception; var Handled: Boolean);
C++
__fastcall HandleException(Exception E, Boolean Handled);

HandleException provides the last opportunity for a WebSnap application to handle an exception that passes through all the try blocks in the application code. If the HandleException method does not handle the exception, the WebSnap application displays a dialog box that indicates an error occurred. 

HandleException calls the ImplHandleException method to handle the exception. In TMultiModuleWebAppServices, ImplHandleException does nothing. However, descendant classes override ImplHandleException to provide more meaningful responses, such as generating an OnException event or creating a response message that describes the exception to the caller. 

E is the exception object for the exception that occurred. 

Handled returns true if HandleException handled the exception. If Handled returns false, the WebSnap application displays a dialog box that indicates an error occurred. 

 

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