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

# TReader.Error

Calls an installed error handler and passes it Message

## Declaration

`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.