DOMException extension type

The DOMException interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web API. This is how error conditions are described in web APIs.

Each exception has a name, which is a short "PascalCase"-style string identifying the error or abnormal condition.

DOMException is a , so it can be cloned with structuredClone or copied between Workers using Worker.postMessage.

on
Implemented types
Implementers

Constructors

DOMException([String message, String name])
factory

Properties

code int
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
no setter
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

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