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

# EStreamError

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

Exception raised when an error occurs during read or write operations on a stream.

## Declaration

`type EStreamError = class(Exception) end;`

## Inheritance

`EStreamError` |  | Exception raised when an error occurs during read or write operations on a stream.
`Exception`
?
`TObject`

## Description

An EStreamError is raised when an error occurs during reading from or writng to a stream: Possible causes are

1. Not enough data is available in the stream.
2. Trying to seek beyond the beginning or end of the stream.
3. Trying to set the capacity of a memory stream and no memory is available.
4. Trying to write to a resource stream.

## See also

EFCreateError |  | Exception raised when an error occurred during creation of a TFileStream stream.