Skip to content

EStreamError

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

    Declaration

    Source position: classesh.inc line 138

    type
    
      EStreamError = class(Exception)
      end;
    

    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

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