Sign in Join
FPDoc Onlineexperiment

TErrorHandler procedure type

In unit video

Error handler prototype.

Declaration

pascal
TErrorHandler = function(Code: LongInt; Info: Pointer)
: TErrorHandlerReturnValue

Description

The TErrorHandler function is used to register an own error handling function. It should be used when installing a custom error handling function, and must return one of the above values.

Code should contain the error code for the error condition, and the Info parameter may contain any data type specific to the error code passed to the function.

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