
## __init__ {#str}

Initializes a new instance of the [`DOMException`](/html/python-net/aspose.html.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`](/html/python-net/aspose.html.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.html.dom`](../../)
* class [`DOMException`](/html/python-net/aspose.html.dom/domexception)
