
## __init__ {#str-aspose.cad.fileformats.psd.ResourceBlock}

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



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


| Parameter | Type | Description |
| :- | :- | :- |
| message | str | The exception message. |
| resource | aspose.cad.fileformats.psd.ResourceBlock | The resource. |



### See Also
* module [`aspose.cad.cadexceptions.imageformats`](../../)
* class [`PsdImageResourceException`](/cad/python-net/aspose.cad.cadexceptions.imageformats/psdimageresourceexception)
