DOMException constructor

init

Initializes a new instance of the DOMException class.

def __init__(self, message):
    ...
ParameterTypeDescription
messagestrThe error message.

init

Initializes a new instance of the DOMException class.

def __init__(self, name, message):
    ...
ParameterTypeDescription
namestrThe error name.
messagestrThe error message.

See Also