| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Lesser General Public | 5 * modify it under the terms of the GNU Lesser General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 enum { | 33 enum { |
| 34 IndexSizeError = 1, | 34 IndexSizeError = 1, |
| 35 HierarchyRequestError, | 35 HierarchyRequestError, |
| 36 WrongDocumentError, | 36 WrongDocumentError, |
| 37 InvalidCharacterError, | 37 InvalidCharacterError, |
| 38 NoModificationAllowedError, | 38 NoModificationAllowedError, |
| 39 NotFoundError, | 39 NotFoundError, |
| 40 NotSupportedError, | 40 NotSupportedError, |
| 41 InuseAttributeError, // Historical. Only used in setAttributeNode etc wh
ich have been removed from the DOM specs. | 41 InuseAttributeError, // Historical. Only used in setAttributeNode etc wh
ich have been removed from the DOM specs. |
| 42 | 42 |
| 43 // FIXME: Rename these to use CamelCase matching the exception name. | |
| 44 // Introduced in DOM Level 2: | 43 // Introduced in DOM Level 2: |
| 45 INVALID_STATE_ERR, | 44 InvalidStateError, |
| 46 SYNTAX_ERR, | 45 SyntaxError, |
| 47 INVALID_MODIFICATION_ERR, | 46 InvalidModificationError, |
| 48 NAMESPACE_ERR, | 47 NamespaceError, |
| 49 INVALID_ACCESS_ERR, | 48 InvalidAccessError, |
| 50 | 49 |
| 51 // Introduced in DOM Level 3: | 50 // Introduced in DOM Level 3: |
| 52 TYPE_MISMATCH_ERR, // Historical; use TypeError instead | 51 TypeMismatchError, // Historical; use TypeError instead |
| 53 | 52 |
| 54 // XMLHttpRequest extension: | 53 // XMLHttpRequest extension: |
| 55 SECURITY_ERR, | 54 SecurityError, |
| 56 | 55 |
| 57 // Others introduced in HTML5: | 56 // Others introduced in HTML5: |
| 57 // FIXME: Rename these to use CamelCase matching the exception name. |
| 58 NETWORK_ERR, | 58 NETWORK_ERR, |
| 59 ABORT_ERR, | 59 ABORT_ERR, |
| 60 URL_MISMATCH_ERR, | 60 URL_MISMATCH_ERR, |
| 61 QUOTA_EXCEEDED_ERR, | 61 QUOTA_EXCEEDED_ERR, |
| 62 TIMEOUT_ERR, | 62 TIMEOUT_ERR, |
| 63 INVALID_NODE_TYPE_ERR, | 63 INVALID_NODE_TYPE_ERR, |
| 64 DATA_CLONE_ERR, | 64 DATA_CLONE_ERR, |
| 65 | 65 |
| 66 // These are IDB-specific. | 66 // These are IDB-specific. |
| 67 IDBNotFoundError, | 67 IDBNotFoundError, |
| 68 UnknownError, | 68 UnknownError, |
| 69 ConstraintError, | 69 ConstraintError, |
| 70 DataError, | 70 DataError, |
| 71 TransactionInactiveError, | 71 TransactionInactiveError, |
| 72 ReadOnlyError, | 72 ReadOnlyError, |
| 73 VersionError, | 73 VersionError, |
| 74 | 74 |
| 75 // File system | 75 // File system |
| 76 // FIXME: Consolidate these once https://crbug.com/252233 is fixed. | 76 // FIXME: Consolidate these once https://crbug.com/252233 is fixed. |
| 77 FSNotFoundError, | 77 FSNotFoundError, |
| 78 FSSecurityError, | 78 FSSecurityError, |
| 79 FSAbortError, | 79 FSAbortError, |
| 80 FSNotReadableError, | 80 FSNotReadableError, |
| 81 FSEncodingError, | 81 FSEncodingError, |
| 82 FSNoModificationAllowedError, | 82 FSNoModificationAllowedError, |
| 83 FSInvalidStateError, | 83 FSInvalidStateError, |
| 84 FSSyntaxError, | 84 FSSyntaxError, |
| 85 FSInvalidModificationError, | 85 FSInvalidModificationError, // FIXME: This seems to be only used by the
file system |
| 86 FSQuotaExceededError, | 86 FSQuotaExceededError, |
| 87 FSTypeMismatchError, | 87 FSTypeMismatchError, |
| 88 FSPathExistsError, | 88 FSPathExistsError, |
| 89 | 89 |
| 90 // SQL | 90 // SQL |
| 91 // FIXME: Consolidate these once https://crbug.com/252233 is fixed. | 91 // FIXME: Consolidate these once https://crbug.com/252233 is fixed. |
| 92 SQLUnknownError, | 92 SQLUnknownError, |
| 93 SQLDatabaseError, | 93 SQLDatabaseError, |
| 94 SQLVersionError, | 94 SQLVersionError, |
| 95 SQLTooLargeError, | 95 SQLTooLargeError, |
| 96 SQLQuotaExceededError, | 96 SQLQuotaExceededError, |
| 97 SQLSyntaxError, | 97 SQLSyntaxError, |
| 98 SQLConstraintError, | 98 SQLConstraintError, |
| 99 SQLTimeoutError, | 99 SQLTimeoutError, |
| 100 | 100 |
| 101 // WebIDL exception types, handled by the binding layer. | 101 // WebIDL exception types, handled by the binding layer. |
| 102 // FIXME: Add GeneralError, EvalError, etc. when implemented in the bind
ings. | 102 // FIXME: Add GeneralError, EvalError, etc. when implemented in the bind
ings. |
| 103 TypeError, | 103 TypeError, |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace WebCore | 106 } // namespace WebCore |
| 107 | 107 |
| 108 #endif // ExceptionCode_h | 108 #endif // ExceptionCode_h |
| OLD | NEW |