RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TExceptionRecord Record

TExceptionRecord holds information about an exception in an application.

Pascal
TExceptionRecord = record
  ExceptionCode: Cardinal;
  ExceptionFlags: Cardinal;
  ExceptionRecord: PExceptionRecord;
  ExceptionAddress: Pointer;
  NumberParameters: Cardinal;
  case Boolean of
    True: (ExceptionInformation: array [0..14] of Longint);
           False: (ExceptAddr: Pointer; ExceptObject: Pointer;);
end;
C++
struct TExceptionRecord {
  unsigned ExceptionCode;
  unsigned ExceptionFlags;
  PExceptionRecord ExceptionRecord;
  void * ExceptionAddress;
  unsigned NumberParameters;
  array [0..14] of Longint) ExceptionInformation;
  (ExceptAddr: Pointer; ExceptObject: Pointer False;
};

TExceptionRecord holds information about an exception in an application. It is furnished by the Delphi exception handling process. 

The record comprises the following elements :

Element 
Meaning 
ExceptionCode  
The exception code, such as EXCEPTION_INT_OVERFLOW.  
ExceptionFlags  
Comprises one flag : EXCEPTION_NONCONTINUABLE_EXCEPTION. If 0, then the exception is allowed to continue.  
ExceptionRecord  
Pointer to subsequent exception records, if any.  
ExceptionAddress  
Address where the exception occured.  
NumberParameters  
Number of elements in the ExceptionInformation array.  
ExceptionInformation  
An array of numbers that describe the exception.  

 

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