Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#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 137

type EStreamError = class(Exception)

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


Documentation generated on: Oct 27 2024