Class StreamReadException

Class StreamReadException

Namespace: Aspose.Imaging.CoreExceptions
Assembly: Aspose.Imaging.dll (25.2.0)

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

public class StreamReadException : FrameworkException, ISerializable

Inheritance

objectExceptionFrameworkExceptionStreamReadException

Implements

ISerializable

Inherited Members

Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, Exception.SerializeObjectState, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

StreamReadException(string)

Initializes a new instance of the Aspose.Imaging.CoreExceptions.StreamReadException class.

public StreamReadException(string message)

Parameters

message string

The message.

StreamReadException(string, Exception)

Initializes a new instance of the Aspose.Imaging.CoreExceptions.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 Aspose.Imaging.CoreExceptions.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 Aspose.Imaging.CoreExceptions.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

ExpectedReadCount

Gets the expected read bytes count.

public int ExpectedReadCount { get; }

Property Value

int