StreamReadException Class

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

Module: aspose.psd.coreexceptions

Full Name: aspose.psd.coreexceptions.StreamReadException

Inheritance: FrameworkException

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
StreamReadException(message)Initializes a new instance of the StreamReadException class.
StreamReadException(message, expected_read_count, actual_read_count)Initializes a new instance of the StreamReadException class.

Properties

NameTypeAccessDescription
actual_read_countintrGets the actual read bytes count.
expected_read_countintrGets the expected read bytes count.

Constructor: StreamReadException(message)

 StreamReadException(message) 

Initializes a new instance of the StreamReadException class.

Parameters:

ParameterTypeDescription
messagestringThe message.

Constructor: StreamReadException(message, expected_read_count, actual_read_count)

 StreamReadException(message, expected_read_count, actual_read_count) 

Initializes a new instance of the StreamReadException class.

Parameters:

ParameterTypeDescription
messagestringThe message.
expected_read_countintThe expected read count.
actual_read_countintThe actual read count.