RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebAppComponents.ImplHandleException Method

Provides the underlying implementation of the HandleException method.

Pascal
procedure ImplHandleException(E: Exception; var Handled: Boolean); override;
C++
virtual __fastcall ImplHandleException(Exception E, Boolean Handled);

The HandleException method calls ImplHandleException to handle any exception that passes through all the try blocks in the application code.  

ImplHandleException generates an OnException event, so that an event handler can take care of the exception. If the OnException event handler does not handle the exception, ImplHandleException checks whether the response message has not yet been sent. If not, it adds the exception error message to the response. 

E is the exception object for the exception that occurred. 

Handled returns true if the OnException event handler handled the exception or if ImplHandleException added the error message to the response object. 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!