diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:09:45 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-22 09:10:13 +0100 |
| commit | 470286ecfe79d59df14944e5b5d34630fc739391 (patch) | |
| tree | 43983212872e06cebefd2ae474418fa2908ca54c /Source/WebCore/dom/ExceptionCode.h | |
| parent | 23037105e948c2065da5a937d3a2396b0ff45c1e (diff) | |
| download | qtwebkit-470286ecfe79d59df14944e5b5d34630fc739391.tar.gz | |
Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 (http://svn.webkit.org/repository/webkit/trunk@135485)
Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebCore/dom/ExceptionCode.h')
| -rw-r--r-- | Source/WebCore/dom/ExceptionCode.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebCore/dom/ExceptionCode.h b/Source/WebCore/dom/ExceptionCode.h index 51f8dc2d3..88f5f10b3 100644 --- a/Source/WebCore/dom/ExceptionCode.h +++ b/Source/WebCore/dom/ExceptionCode.h @@ -30,17 +30,18 @@ namespace WebCore { // an exception of any type can be expressed with a single integer. typedef int ExceptionCode; + + // Some of these are considered historical since they have been + // changed or removed from the specifications. enum { INDEX_SIZE_ERR = 1, - DOMSTRING_SIZE_ERR = 2, HIERARCHY_REQUEST_ERR = 3, WRONG_DOCUMENT_ERR = 4, INVALID_CHARACTER_ERR = 5, - NO_DATA_ALLOWED_ERR = 6, NO_MODIFICATION_ALLOWED_ERR = 7, NOT_FOUND_ERR = 8, NOT_SUPPORTED_ERR = 9, - INUSE_ATTRIBUTE_ERR = 10, + INUSE_ATTRIBUTE_ERR = 10, // Historical. Only used in setAttributeNode etc which have been removed from the DOM specs. // Introduced in DOM Level 2: INVALID_STATE_ERR = 11, @@ -50,8 +51,7 @@ namespace WebCore { INVALID_ACCESS_ERR = 15, // Introduced in DOM Level 3: - VALIDATION_ERR = 16, - TYPE_MISMATCH_ERR = 17, + TYPE_MISMATCH_ERR = 17, // Historical; use TypeError instead // XMLHttpRequest extension: SECURITY_ERR = 18, @@ -65,8 +65,9 @@ namespace WebCore { INVALID_NODE_TYPE_ERR = 24, DATA_CLONE_ERR = 25, - // Converted to a native TypeError by the script binding layer: - NATIVE_TYPE_ERR = 99 + // WebIDL exception types, handled by the binding layer. + // FIXME: Add GeneralError, EvalError, etc. when implemented in the bindings. + TypeError = 105, }; } // namespace WebCore |
