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

TReader.Error

Calls an installed error handler and passes it Message

Declaration

Source position: classesh.inc line 1150

protected function TReader.Error(

  const Message: String

):Boolean; virtual;

Description

Error returns False if no TReader.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 restured False, then the calling code will raise an exception.

See also

TReader.FindMethod

  

Return the address of a published method.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.