Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / bindings / DOMExceptionNames.h
blob4630dd439481a2d7500115374d6c59b03dc862d0
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 // NOTE: No include guard. This is meant to be included to generate different
7 // code based on how DOMEXCEPTION is defined, possibly multiple times in a
8 // single translation unit.
10 // XXXbz This list sort of duplicates the DOM4_MSG_DEF bits of domerr.msg,
11 // except that has various extra errors that are not in specs
12 // (e.g. EncodingError) and has multiple definitions for the same error
13 // name using different messages, which we don't need because we get the
14 // message passed in. We should try to convert all consumers of the "extra"
15 // error codes in there to these APIs, remove the extra bits, and just
16 // include domerr.msg here.
17 DOMEXCEPTION(IndexSizeError, NS_ERROR_DOM_INDEX_SIZE_ERR)
18 // We don't have a DOMStringSizeError and it's deprecated anyway.
19 DOMEXCEPTION(HierarchyRequestError, NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)
20 DOMEXCEPTION(WrongDocumentError, NS_ERROR_DOM_WRONG_DOCUMENT_ERR)
21 DOMEXCEPTION(InvalidCharacterError, NS_ERROR_DOM_INVALID_CHARACTER_ERR)
22 // We don't have a NoDataAllowedError and it's deprecated anyway.
23 DOMEXCEPTION(NoModificationAllowedError,
24 NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR)
25 DOMEXCEPTION(NotFoundError, NS_ERROR_DOM_NOT_FOUND_ERR)
26 DOMEXCEPTION(NotSupportedError, NS_ERROR_DOM_NOT_SUPPORTED_ERR)
27 DOMEXCEPTION(InUseAttributeError, NS_ERROR_DOM_INUSE_ATTRIBUTE_ERR)
28 DOMEXCEPTION(InvalidStateError, NS_ERROR_DOM_INVALID_STATE_ERR)
29 DOMEXCEPTION(SyntaxError, NS_ERROR_DOM_SYNTAX_ERR)
30 DOMEXCEPTION(InvalidModificationError, NS_ERROR_DOM_INVALID_MODIFICATION_ERR)
31 DOMEXCEPTION(NamespaceError, NS_ERROR_DOM_NAMESPACE_ERR)
32 DOMEXCEPTION(InvalidAccessError, NS_ERROR_DOM_INVALID_ACCESS_ERR)
33 // We don't have a ValidationError and it's deprecated anyway.
34 DOMEXCEPTION(TypeMismatchError, NS_ERROR_DOM_TYPE_MISMATCH_ERR)
35 DOMEXCEPTION(SecurityError, NS_ERROR_DOM_SECURITY_ERR)
36 DOMEXCEPTION(NetworkError, NS_ERROR_DOM_NETWORK_ERR)
37 DOMEXCEPTION(AbortError, NS_ERROR_DOM_ABORT_ERR)
38 DOMEXCEPTION(URLMismatchError, NS_ERROR_DOM_URL_MISMATCH_ERR)
39 DOMEXCEPTION(QuotaExceededError, NS_ERROR_DOM_QUOTA_EXCEEDED_ERR)
40 DOMEXCEPTION(TimeoutError, NS_ERROR_DOM_TIMEOUT_ERR)
41 DOMEXCEPTION(InvalidNodeTypeError, NS_ERROR_DOM_INVALID_NODE_TYPE_ERR)
42 DOMEXCEPTION(DataCloneError, NS_ERROR_DOM_DATA_CLONE_ERR)
43 DOMEXCEPTION(EncodingError, NS_ERROR_DOM_ENCODING_NOT_SUPPORTED_ERR)
44 DOMEXCEPTION(NotReadableError, NS_ERROR_DOM_FILE_NOT_READABLE_ERR)
45 DOMEXCEPTION(UnknownError, NS_ERROR_DOM_UNKNOWN_ERR)
46 DOMEXCEPTION(ConstraintError, NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR)
47 DOMEXCEPTION(DataError, NS_ERROR_DOM_DATA_ERR)
48 DOMEXCEPTION(TransactionInactiveError,
49 NS_ERROR_DOM_INDEXEDDB_TRANSACTION_INACTIVE_ERR)
50 DOMEXCEPTION(ReadOnlyError, NS_ERROR_DOM_INDEXEDDB_READ_ONLY_ERR)
51 DOMEXCEPTION(VersionError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR)
52 DOMEXCEPTION(OperationError, NS_ERROR_DOM_OPERATION_ERR)
53 DOMEXCEPTION(NotAllowedError, NS_ERROR_DOM_NOT_ALLOWED_ERR)