RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWebDispatcher.HandleException Method

Provides default handling of exceptions for the web application.

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

If an exception passes through all the try blocks in the web 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. 

To assign other exception handling code for the web application, use the OnException event handler. 

 

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