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

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

Source position: classesh.inc line 127

type EStreamError = class(Exception) end;

Inheritance

EStreamError

  

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

|

Exception

  

Base class of all exceptions.

|

TObject

  

Base class of all classes.

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 read-only stream, such as a resource stream.
  5. Trying to read from a write-only stream.

See also

EFCreateError

  

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

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