[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Obtain a reference to the current exception object
Source position: objpash.inc line 347
function AcquireExceptionObject: Pointer; |
AcquireExceptionObject returns the current exception object. It raises the reference count of the exception object, so it will not be freed. Calling this method is only valid within an except block.
The effect of this function is countered by re-raising an exception via raise;
To make sure that the exception object is released when it is no longer needed, ReleaseExceptionObject must be called when the reference is no longer needed.
If there is no current exception, a run-time error 231 will occur.
|
Decrease the reference count of the current exception object. |
lazarus-ccr.sourceforge.net |