Table of Contents

Class StreamReadException

Namespace
Aspose.Imaging.CoreExceptions
Assembly
Aspose.Imaging.dll

The stream reading exception. Caused when stream reading failed due to incorrect offset and bytes count request.

public class StreamReadException : FrameworkException, ISerializable
Inheritance
StreamReadException
Implements
Inherited Members

Constructors

StreamReadException(string)

Initializes a new instance of the StreamReadException class.

public StreamReadException(string message)

Parameters

message string

The message.

StreamReadException(string, Exception)

Initializes a new instance of the StreamReadException class.

public StreamReadException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The inner exception.

StreamReadException(string, Exception, int, int)

Initializes a new instance of the StreamReadException class.

public StreamReadException(string message, Exception innerException, int expectedReadCount, int actualReadCount)

Parameters

message string

The message.

innerException Exception

The inner exception.

expectedReadCount int

The expected read count.

actualReadCount int

The actual read count.

StreamReadException(string, int, int)

Initializes a new instance of the StreamReadException class.

public StreamReadException(string message, int expectedReadCount, int actualReadCount)

Parameters

message string

The message.

expectedReadCount int

The expected read count.

actualReadCount int

The actual read count.

Properties

ActualReadCount

Gets the actual read bytes count.

public int ActualReadCount { get; }

Property Value

int

The actual read bytes count.

ExpectedReadCount

Gets the expected read bytes count.

public int ExpectedReadCount { get; }

Property Value

int

The expected read bytes count.