Sign in Join
FPDoc Onlineexperiment

ExceptionErrorMessage function

In unit sysutils

Return a message describing the exception.

Declaration

pascal
function ExceptionErrorMessage(ExceptObject: TObject; 
 ExceptAddr: Pointer; Buffer: PAnsiChar; 
 Size: Integer): Integer

Description

ExceptionErrorMessage creates a string that describes the exception object ExceptObject at address ExceptAddr. It can be used to display exception messages. The string will be stored in the memory pointed to by Buffer, and will at most have Size characters.

The routine checks whether ExceptObject is a Exception object or not, and adapts the output accordingly.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.