---
title: "StreamReadException constructor"
url: "https://reference.aspose.com/cad/python-net/aspose.cad.cadexceptions/streamreadexception/__init__/"
product: "Aspose.CAD for Python via .NET API References"
---


## __init__ {#str}

Initializes a new instance of the [`StreamReadException`](/cad/python-net/aspose.cad.cadexceptions/streamreadexception) class.



```python
def __init__(self, message):
    ...
```


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


## __init__ {#str-int-int}

Initializes a new instance of the [`StreamReadException`](/cad/python-net/aspose.cad.cadexceptions/streamreadexception) class.



```python
def __init__(self, message, expected_read_count, actual_read_count):
    ...
```


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



### See Also
* module [`aspose.cad.cadexceptions`](../../)
* class [`StreamReadException`](/cad/python-net/aspose.cad.cadexceptions/streamreadexception)
