[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)


Obtain a reference to the current exception object


Source position: objpash.inc line 361

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.

See also



Decrease the reference count of the current exception object.

Documentation generated on: Mar 17 2017