A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "Exception Codes"

From WHATWG Wiki
Jump to: navigation, search
m (Update; Add link to Web DOM Core)
(DOMException: Cleanup)
Line 3: Line 3:
 
The exceptions in this category are all bound to the DOMException or LSException interfaces.
 
The exceptions in this category are all bound to the DOMException or LSException interfaces.
  
* 1 INDEX_SIZE_ERR
+
;[http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187 DOM3CORE]
* 2 DOMSTRING_SIZE_ERR
+
:* 1 INDEX_SIZE_ERR
* 3 HIERARCHY_REQUEST_ERR
+
:* 2 DOMSTRING_SIZE_ERR
* 4 WRONG_DOCUMENT_ERR
+
:* 3 HIERARCHY_REQUEST_ERR
* 5 INVALID_CHARACTER_ERR
+
:* 4 WRONG_DOCUMENT_ERR
* 6 NO_DATA_ALLOWED_ERR
+
:* 5 INVALID_CHARACTER_ERR
* 7 NO_MODIFICATION_ALLOWED_ERR
+
:* 6 NO_DATA_ALLOWED_ERR
* 8 NOT_FOUND_ERR
+
:* 7 NO_MODIFICATION_ALLOWED_ERR
* 9 NOT_SUPPORTED_ERR
+
:* 8 NOT_FOUND_ERR
* 10 INUSE_ATTRIBUTE_ERR
+
:* 9 NOT_SUPPORTED_ERR
* 11 INVALID_STATE_ERR
+
:* 10 INUSE_ATTRIBUTE_ERR
* 12 SYNTAX_ERR
+
:* 11 INVALID_STATE_ERR
* 13 INVALID_MODIFICATION_ERR
+
:* 12 SYNTAX_ERR
* 14 NAMESPACE_ERR
+
:* 13 INVALID_MODIFICATION_ERR
* 15 INVALID_ACCESS_ERR
+
:* 14 NAMESPACE_ERR
* 16 VALIDATION_ERR
+
:* 15 INVALID_ACCESS_ERR
* 17 TYPE_MISMATCH_ERR
+
:* 16 VALIDATION_ERR
- http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187
+
:* 17 TYPE_MISMATCH_ERR
 
+
;[http://dev.w3.org/2006/webapi/XMLHttpRequest/#exceptions XHR]
* 18 SECURITY_ERR
+
:* 18 SECURITY_ERR (http://lists.w3.org/Archives/Public/public-webapi/2006May/0027.html)
- http://lists.w3.org/Archives/Public/public-webapi/2006May/0027.html
+
:* 19 NETWORK_ERR
- http://dev.w3.org/2006/webapi/XMLHttpRequest/#exceptions
+
:* 20 ABORT_ERR
 
+
;[http://whatwg.org/html5 HTML5]
* 19 NETWORK_ERR
+
:* 21 URL_MISMATCH_ERR (used in [http://whatwg.org/ww Web Workers])
* 20 ABORT_ERR
+
:* 22 QUOTA_EXCEEDED_ERR
- http://dev.w3.org/2006/webapi/XMLHttpRequest/#exceptions
+
<!--v2DATAGRID:* 23 DATAGRID_MODEL_ERR-->
 
+
;[http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#exceptions XHR2]
* 21 URL_MISMATCH_ERR (used in [http://whatwg.org/ww Web Workers])
+
:* 23 TIMEOUT-ERR
* 22 QUOTA_EXCEEDED_ERR
+
;[http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-LSException DOM3LS]
<!--v2DATAGRID* 23 DATAGRID_MODEL_ERR-->
 
- http://whatwg.org/html5
 
 
 
 
* 81 PARSE_ERR
 
* 81 PARSE_ERR
 
* 82 SERIALISE_ERR
 
* 82 SERIALISE_ERR
- http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-LSException
 
  
 
== EventException ==
 
== EventException ==

Revision as of 09:55, 14 March 2010

DOMException

The exceptions in this category are all bound to the DOMException or LSException interfaces.

DOM3CORE
  • 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
  • 11 INVALID_STATE_ERR
  • 12 SYNTAX_ERR
  • 13 INVALID_MODIFICATION_ERR
  • 14 NAMESPACE_ERR
  • 15 INVALID_ACCESS_ERR
  • 16 VALIDATION_ERR
  • 17 TYPE_MISMATCH_ERR
XHR
HTML5
  • 21 URL_MISMATCH_ERR (used in Web Workers)
  • 22 QUOTA_EXCEEDED_ERR
XHR2
  • 23 TIMEOUT-ERR
DOM3LS
  • 81 PARSE_ERR
  • 82 SERIALISE_ERR

EventException

DOM3 Events defines exceptions 0 and 1: http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-EventException

See also