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

**Module:** [aspose.psd.coreexceptions](/psd/python-net/aspose.psd.coreexceptions/)

**Full Name:** aspose.psd.coreexceptions.StreamReadException

**Inheritance:** FrameworkException

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [StreamReadException(message)](#StreamReadException_message_1) | Initializes a new instance of the [StreamReadException](/psd/python-net/aspose.psd.coreexceptions/streamreadexception/) class. |
| [StreamReadException(message, expected_read_count, actual_read_count)](#StreamReadException_message_expected_read_count_actual_read_count_2) | Initializes a new instance of the [StreamReadException](/psd/python-net/aspose.psd.coreexceptions/streamreadexception/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| actual_read_count | int | r | Gets the actual read bytes count. |
| expected_read_count | int | r | Gets the expected read bytes count. |


### Constructor: StreamReadException(message) {#StreamReadException_message_1}


```
 StreamReadException(message) 
```

Initializes a new instance of the [StreamReadException](/psd/python-net/aspose.psd.coreexceptions/streamreadexception/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| message | string | The message. |

### Constructor: StreamReadException(message, expected_read_count, actual_read_count) {#StreamReadException_message_expected_read_count_actual_read_count_2}


```
 StreamReadException(message, expected_read_count, actual_read_count) 
```

Initializes a new instance of the [StreamReadException](/psd/python-net/aspose.psd.coreexceptions/streamreadexception/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| message | string | The message. |
| expected_read_count | int | The expected read count. |
| actual_read_count | int | The actual read count. |

