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

# EReadError

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Exception raised if an error occurs while reading from a stream.

## Declaration

`type EReadError = class(EFilerError) end;`

## Inheritance

`EReadError` |  | Exception raised if an error occurs while reading from a stream.
`EFilerError` |  | Exception raised by the component streaming system if an error occurs.
`EStreamError` |  | Exception raised when an error occurs during read or write operations on a stream.
`Exception`
?
`TObject`

## Description

If an error occurs when reading from a stream, a EReadError exception is raised. Possible causes for this are:

1. Not enough data is available when reading from a stream
2. The stream containing a component's data contains invalid data. this will occurr only when reading a component from a stream.

## See also

EFilerError |  | Exception raised by the component streaming system if an error occurs.
EWriteError |  | Exception raised when an error occurs during writing to a stream.