DOMException
interface
interface DOMException extends Errorvariable
var DOMException: { … }The constructor object for DOMException, used to construct an
exception describing an abnormal event raised by a web API. It also exposes
the legacy numeric error code constants (e.g. ABORT_ERR).
Constructors
constructor
new DOMException(message?: string, name?: string): DOMExceptionProperties
name
readonly name: stringmessage
readonly message: stringcode
readonly code: numberDeprecated.
INDEX_SIZE_ERR
readonly INDEX_SIZE_ERR: 1readonly INDEX_SIZE_ERR: 1DOMSTRING_SIZE_ERR
readonly DOMSTRING_SIZE_ERR: 2readonly DOMSTRING_SIZE_ERR: 2HIERARCHY_REQUEST_ERR
readonly HIERARCHY_REQUEST_ERR: 3readonly HIERARCHY_REQUEST_ERR: 3WRONG_DOCUMENT_ERR
readonly WRONG_DOCUMENT_ERR: 4readonly WRONG_DOCUMENT_ERR: 4INVALID_CHARACTER_ERR
readonly INVALID_CHARACTER_ERR: 5readonly INVALID_CHARACTER_ERR: 5NO_DATA_ALLOWED_ERR
readonly NO_DATA_ALLOWED_ERR: 6readonly NO_DATA_ALLOWED_ERR: 6NO_MODIFICATION_ALLOWED_ERR
readonly NO_MODIFICATION_ALLOWED_ERR: 7readonly NO_MODIFICATION_ALLOWED_ERR: 7NOT_FOUND_ERR
readonly NOT_FOUND_ERR: 8readonly NOT_FOUND_ERR: 8NOT_SUPPORTED_ERR
readonly NOT_SUPPORTED_ERR: 9readonly NOT_SUPPORTED_ERR: 9INUSE_ATTRIBUTE_ERR
readonly INUSE_ATTRIBUTE_ERR: 10readonly INUSE_ATTRIBUTE_ERR: 10INVALID_STATE_ERR
readonly INVALID_STATE_ERR: 11readonly INVALID_STATE_ERR: 11SYNTAX_ERR
readonly SYNTAX_ERR: 12readonly SYNTAX_ERR: 12INVALID_MODIFICATION_ERR
readonly INVALID_MODIFICATION_ERR: 13readonly INVALID_MODIFICATION_ERR: 13NAMESPACE_ERR
readonly NAMESPACE_ERR: 14readonly NAMESPACE_ERR: 14INVALID_ACCESS_ERR
readonly INVALID_ACCESS_ERR: 15readonly INVALID_ACCESS_ERR: 15VALIDATION_ERR
readonly VALIDATION_ERR: 16readonly VALIDATION_ERR: 16TYPE_MISMATCH_ERR
readonly TYPE_MISMATCH_ERR: 17readonly TYPE_MISMATCH_ERR: 17SECURITY_ERR
readonly SECURITY_ERR: 18readonly SECURITY_ERR: 18NETWORK_ERR
readonly NETWORK_ERR: 19readonly NETWORK_ERR: 19ABORT_ERR
readonly ABORT_ERR: 20readonly ABORT_ERR: 20URL_MISMATCH_ERR
readonly URL_MISMATCH_ERR: 21readonly URL_MISMATCH_ERR: 21QUOTA_EXCEEDED_ERR
readonly QUOTA_EXCEEDED_ERR: 22readonly QUOTA_EXCEEDED_ERR: 22TIMEOUT_ERR
readonly TIMEOUT_ERR: 23readonly TIMEOUT_ERR: 23INVALID_NODE_TYPE_ERR
readonly INVALID_NODE_TYPE_ERR: 24readonly INVALID_NODE_TYPE_ERR: 24DATA_CLONE_ERR
readonly DATA_CLONE_ERR: 25readonly DATA_CLONE_ERR: 25prototype
readonly prototype: DOMException