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 Chat (such as one of these permanent autoconfirmed members).

Exception Codes: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== DOMException ==
== DOMException ==


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


DOM3 Core defines exceptions 1 through 17:
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
http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187
http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187


18 is for 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
http://dev.w3.org/2006/webapi/XMLHttpRequest/Overview.html#exceptions


19 is for URL_MISMATCH_ERR
19 URL_MISMATCH_ERR
defined tentatively in Web Workers
http://whatwg.org/ww


DOM3 LS defines exceptions 81 and 82: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-LSException
81 PARSE_ERR
82 SERIALISE_ERR
http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-LSException


101 and 102 are defined by XMLHttpRequest:
101 NETWORK_ERR
102 ABORT_ERR
http://dev.w3.org/2006/webapi/XMLHttpRequest/Overview.html#exceptions
http://dev.w3.org/2006/webapi/XMLHttpRequest/Overview.html#exceptions



Revision as of 05:46, 8 August 2008

DOMException

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

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 http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-17189187

18 SECURITY_ERR http://lists.w3.org/Archives/Public/public-webapi/2006May/0027.html http://dev.w3.org/2006/webapi/XMLHttpRequest/Overview.html#exceptions

19 URL_MISMATCH_ERR http://whatwg.org/ww

81 PARSE_ERR 82 SERIALISE_ERR http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-LSException

101 NETWORK_ERR 102 ABORT_ERR http://dev.w3.org/2006/webapi/XMLHttpRequest/Overview.html#exceptions

EventException

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