---
title: "DOMException constructor"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.dom/domexception/__init__/"
product: "Aspose.SVG for Python via .NET API References"
---


## __init__ {#str}

Initializes a new instance of the [`DOMException`](/svg/python-net/aspose.svg.dom/domexception) class.



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

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


## __init__ {#str-str}

Initializes a new instance of the [`DOMException`](/svg/python-net/aspose.svg.dom/domexception) class.



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

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



### See Also
* module [`aspose.svg.dom`](../../)
* class [`DOMException`](/svg/python-net/aspose.svg.dom/domexception)
