DOMException Redirect 1

« DOM Reference

The DOMException interface represents an abnormal event happening when a method or a property is used.

Attributes

code
Readonly short. Returns one of the exception code constants (see below).
Deprecated use DOMError.name instead.

Constants

Code 'Abstract' Constant name
DOM Level 1
1 INDEX_SIZE_ERR
2 DOMSTRING_SIZE_ERR
3 HIERARCHY_REQUEST_ERR
4 WRONG_DOCUMENT_ERR
5 INVALID_CHARACTER_ERR
6 NO_DATA_ALLOWED_ERR
7 NO_MODIFICATION_ALLOWED_ERR
8 NOT_FOUND_ERR
9 NOT_SUPPORTED_ERR
10 INUSE_ATTRIBUTE_ERR
DOM Level 2
11 INVALID_STATE_ERR
12 SYNTAX_ERR
13 INVALID_MODIFICATION_ERR
14 NAMESPACE_ERR
15 INVALID_ACCESS_ERR
DOM Level 3
16 VALIDATION_ERR
17 TYPE_MISMATCH_ERR
DOM Level 4
18 SECURITY_ERR
19 NETWORK_ERR
20 ABORT_ERR
21 URL_MISMATCH_ERR
22 QUOTA_EXCEEDED_ERR
23 TIMEOUT_ERR
24 INVALID_NODE_TYPE_ERR
25 DATA_CLONE_ERR

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 1.0 (1.7 or earlier) ? ? ?
DOM Level 4 support ? 13.0 (13.0) ? ? ?
DATA_CLONE_ERR constant ? 5.0 (5.0) ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 1.0 (1.0) ? ? ?
DOM Level 4 support ? 13.0 (13.0) ? ? ?
DATA_CLONE_ERR constant ? 5.0 (5.0) ? ? ?

Specification

See also

Document Tags and Contributors

 Last updated by: Sheppy,