| 1 | /* |
| 2 | * Copyright (C) 2006-2017 Apple Inc. All rights reserved. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | namespace WebCore { |
| 22 | |
| 23 | enum ExceptionCode { |
| 24 | // DOMException error names (https://heycam.github.io/webidl/#idl-DOMException-error-names). |
| 25 | // Those need to be kept in sync with the array in DOMException.cpp. |
| 26 | IndexSizeError, // Deprecated. Use RangeError instead. |
| 27 | HierarchyRequestError, |
| 28 | WrongDocumentError, |
| 29 | InvalidCharacterError, |
| 30 | NoModificationAllowedError, |
| 31 | NotFoundError, |
| 32 | NotSupportedError, |
| 33 | InUseAttributeError, |
| 34 | InvalidStateError, |
| 35 | SyntaxError, |
| 36 | InvalidModificationError, |
| 37 | NamespaceError, |
| 38 | InvalidAccessError, // Deprecated. use NotAllowedError instead. |
| 39 | TypeMismatchError, // Deprecated. Use TypeError instead. |
| 40 | SecurityError, |
| 41 | NetworkError, |
| 42 | AbortError, |
| 43 | URLMismatchError, |
| 44 | QuotaExceededError, |
| 45 | TimeoutError, |
| 46 | InvalidNodeTypeError, |
| 47 | DataCloneError, |
| 48 | EncodingError, |
| 49 | NotReadableError, |
| 50 | UnknownError, |
| 51 | ConstraintError, |
| 52 | DataError, |
| 53 | TransactionInactiveError, |
| 54 | ReadonlyError, |
| 55 | VersionError, |
| 56 | OperationError, |
| 57 | NotAllowedError, |
| 58 | |
| 59 | // Simple exceptions (https://heycam.github.io/webidl/#idl-exceptions). |
| 60 | RangeError, |
| 61 | TypeError, |
| 62 | |
| 63 | // Non-standard error. |
| 64 | StackOverflowError, |
| 65 | |
| 66 | // Used to indicate to the bindings that a JS exception was thrown below and it should be propagated. |
| 67 | ExistingExceptionError, |
| 68 | }; |
| 69 | |
| 70 | } // namespace WebCore |
| 71 | |