DOMException
class in package org.w3c.dom

    public class DOMException extends Exception:

Object
└ Exception
└ DOMException

DOM operation error.

    import org.w3c.dom

    error = DOMException(DOMException.NOT_SUPPORTED_ERR, "Operation is not supported")
    print(error.code)

Fields

Modifier and Type | Member | Description
--- | --- | ---
public static readonly | DOMSTRING_SIZE_ERR `DOMSTRING_SIZE_ERR as Int = 2` | No summary.
public static readonly | HIERARCHY_REQUEST_ERR `HIERARCHY_REQUEST_ERR as Int = 3` | No summary.
public static readonly | INDEX_SIZE_ERR `INDEX_SIZE_ERR as Int = 1` | DOMException error code constants.
public static readonly | INUSE_ATTRIBUTE_ERR `INUSE_ATTRIBUTE_ERR as Int = 10` | No summary.
public static readonly | INVALID_ACCESS_ERR `INVALID_ACCESS_ERR as Int = 15` | No summary.
public static readonly | INVALID_CHARACTER_ERR `INVALID_CHARACTER_ERR as Int = 5` | No summary.
public static readonly | INVALID_MODIFICATION_ERR `INVALID_MODIFICATION_ERR as Int = 13` | No summary.
public static readonly | INVALID_STATE_ERR `INVALID_STATE_ERR as Int = 11` | No summary.
public static readonly | NAMESPACE_ERR `NAMESPACE_ERR as Int = 14` | No summary.
public static readonly | NOT_FOUND_ERR `NOT_FOUND_ERR as Int = 8` | No summary.
public static readonly | NOT_SUPPORTED_ERR `NOT_SUPPORTED_ERR as Int = 9` | No summary.
public static readonly | NO_DATA_ALLOWED_ERR `NO_DATA_ALLOWED_ERR as Int = 6` | No summary.
public static readonly | NO_MODIFICATION_ALLOWED_ERR `NO_MODIFICATION_ALLOWED_ERR as Int = 7` | No summary.
public static readonly | SYNTAX_ERR `SYNTAX_ERR as Int = 12` | No summary.
public static readonly | TYPE_MISMATCH_ERR `TYPE_MISMATCH_ERR as Int = 17` | No summary.
public static readonly | VALIDATION_ERR `VALIDATION_ERR as Int = 16` | No summary.
public static readonly | WRONG_DOCUMENT_ERR `WRONG_DOCUMENT_ERR as Int = 4` | No summary.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | code `code as Int:` | Numeric DOM exception code.

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DOMException `DOMException(code as Int = DOMException.NOT_SUPPORTED_ERR, message as String = "DOM exception"):` | Creates a DOM exception.

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml