An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.

interface DOMException {
    ABORT_ERR: number;
    DATA_CLONE_ERR: number;
    DOMSTRING_SIZE_ERR: number;
    HIERARCHY_REQUEST_ERR: number;
    INDEX_SIZE_ERR: number;
    INUSE_ATTRIBUTE_ERR: number;
    INVALID_ACCESS_ERR: number;
    INVALID_CHARACTER_ERR: number;
    INVALID_MODIFICATION_ERR: number;
    INVALID_NODE_TYPE_ERR: number;
    INVALID_STATE_ERR: number;
    NAMESPACE_ERR: number;
    NETWORK_ERR: number;
    NOT_FOUND_ERR: number;
    NOT_SUPPORTED_ERR: number;
    NO_DATA_ALLOWED_ERR: number;
    NO_MODIFICATION_ALLOWED_ERR: number;
    QUOTA_EXCEEDED_ERR: number;
    SECURITY_ERR: number;
    SYNTAX_ERR: number;
    TIMEOUT_ERR: number;
    TYPE_MISMATCH_ERR: number;
    URL_MISMATCH_ERR: number;
    VALIDATION_ERR: number;
    WRONG_DOCUMENT_ERR: number;
    code: number;
    message: string;
    name: string;
    stack?: string;
}

Hierarchy (view full)

Properties

ABORT_ERR: number
DATA_CLONE_ERR: number
DOMSTRING_SIZE_ERR: number
HIERARCHY_REQUEST_ERR: number
INDEX_SIZE_ERR: number
INUSE_ATTRIBUTE_ERR: number
INVALID_ACCESS_ERR: number
INVALID_CHARACTER_ERR: number
INVALID_MODIFICATION_ERR: number
INVALID_NODE_TYPE_ERR: number
INVALID_STATE_ERR: number
NAMESPACE_ERR: number
NETWORK_ERR: number
NOT_FOUND_ERR: number
NOT_SUPPORTED_ERR: number
NO_DATA_ALLOWED_ERR: number
NO_MODIFICATION_ALLOWED_ERR: number
QUOTA_EXCEEDED_ERR: number
SECURITY_ERR: number
SYNTAX_ERR: number
TIMEOUT_ERR: number
TYPE_MISMATCH_ERR: number
URL_MISMATCH_ERR: number
VALIDATION_ERR: number
WRONG_DOCUMENT_ERR: number
code: number

Deprecated

message: string
name: string
stack?: string