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
stringThe message.
StreamReadException(string, Exception)
Initializes a new instance of the StreamReadException class.
public StreamReadException(string message, Exception innerException)
Parameters
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
stringThe message.
innerException
ExceptionThe inner exception.
expectedReadCount
intThe expected read count.
actualReadCount
intThe 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
stringThe message.
expectedReadCount
intThe expected read count.
actualReadCount
intThe 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.