Sign in Join
FPDoc Onlineexperiment

TReader.Error function

Member of TReaderprotectedIn unit Classes

Calls an installed error handler and passes it Message.

Declaration

pascal
function Error(const Message: string): Boolean; virtual

Description

Error returns False if no OnError handler is installed. If one is installed, then it will be called, passing the reader instance, message, and function return value as parameters.

If the function result False, i.e. when there is no handler installed or the handler returned False, then the calling code will raise an exception.

See also

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