RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.ExceptClsProc Variable

ExceptClsProc defines a pointer to a function called during exception handling.

Pascal
ExceptClsProc: Pointer;
C++
void * ExceptClsProc;

By default, ExceptClsProc is defined internally to point to a function that handles exceptions on your behalf. It returns the exception class. If you override ExceptClsProc to point to your function, that function will be called when an exception occurs in a try-except block. It will be passed an updateable TExceptionRecord value that describes the exception.  

Internally, the class returned is used to determine which exception handler to use before ExceptObjProc is called to create the exception instance. 

 

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