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 17 matching lines...) Expand all Loading... |
28 // In our DOM implementation we use int instead, and use different | 28 // In our DOM implementation we use int instead, and use different |
29 // numerical ranges for different types of DOM exception, so that | 29 // numerical ranges for different types of DOM exception, so that |
30 // an exception of any type can be expressed with a single integer. | 30 // an exception of any type can be expressed with a single integer. |
31 typedef int ExceptionCode; | 31 typedef int ExceptionCode; |
32 | 32 |
33 | 33 |
34 // Some of these are considered historical since they have been | 34 // Some of these are considered historical since they have been |
35 // changed or removed from the specifications. | 35 // changed or removed from the specifications. |
36 enum { | 36 enum { |
37 INDEX_SIZE_ERR = 1, | 37 INDEX_SIZE_ERR = 1, |
38 HIERARCHY_REQUEST_ERR = 3, | 38 HIERARCHY_REQUEST_ERR, |
39 WRONG_DOCUMENT_ERR = 4, | 39 WRONG_DOCUMENT_ERR, |
40 INVALID_CHARACTER_ERR = 5, | 40 INVALID_CHARACTER_ERR, |
41 NO_MODIFICATION_ALLOWED_ERR = 7, | 41 NO_MODIFICATION_ALLOWED_ERR, |
42 NOT_FOUND_ERR = 8, | 42 NOT_FOUND_ERR, |
43 NOT_SUPPORTED_ERR = 9, | 43 NOT_SUPPORTED_ERR, |
44 INUSE_ATTRIBUTE_ERR = 10, // Historical. Only used in setAttributeNode e
tc which have been removed from the DOM specs. | 44 INUSE_ATTRIBUTE_ERR, // Historical. Only used in setAttributeNode etc wh
ich have been removed from the DOM specs. |
45 | 45 |
46 // Introduced in DOM Level 2: | 46 // Introduced in DOM Level 2: |
47 INVALID_STATE_ERR = 11, | 47 INVALID_STATE_ERR, |
48 SYNTAX_ERR = 12, | 48 SYNTAX_ERR, |
49 INVALID_MODIFICATION_ERR = 13, | 49 INVALID_MODIFICATION_ERR, |
50 NAMESPACE_ERR = 14, | 50 NAMESPACE_ERR, |
51 INVALID_ACCESS_ERR = 15, | 51 INVALID_ACCESS_ERR, |
52 | 52 |
53 // Introduced in DOM Level 3: | 53 // Introduced in DOM Level 3: |
54 TYPE_MISMATCH_ERR = 17, // Historical; use TypeError instead | 54 TYPE_MISMATCH_ERR, // Historical; use TypeError instead |
55 | 55 |
56 // XMLHttpRequest extension: | 56 // XMLHttpRequest extension: |
57 SECURITY_ERR = 18, | 57 SECURITY_ERR, |
58 | 58 |
59 // Others introduced in HTML5: | 59 // Others introduced in HTML5: |
60 NETWORK_ERR = 19, | 60 NETWORK_ERR, |
61 ABORT_ERR = 20, | 61 ABORT_ERR, |
62 URL_MISMATCH_ERR = 21, | 62 URL_MISMATCH_ERR, |
63 QUOTA_EXCEEDED_ERR = 22, | 63 QUOTA_EXCEEDED_ERR, |
64 TIMEOUT_ERR = 23, | 64 TIMEOUT_ERR, |
65 INVALID_NODE_TYPE_ERR = 24, | 65 INVALID_NODE_TYPE_ERR, |
66 DATA_CLONE_ERR = 25, | 66 DATA_CLONE_ERR, |
67 | 67 |
68 // WebIDL exception types, handled by the binding layer. | 68 // WebIDL exception types, handled by the binding layer. |
69 // FIXME: Add GeneralError, EvalError, etc. when implemented in the bind
ings. | 69 // FIXME: Add GeneralError, EvalError, etc. when implemented in the bind
ings. |
70 TypeError = 105, | 70 TypeError = 105, |
71 }; | 71 }; |
72 | 72 |
73 } // namespace WebCore | 73 } // namespace WebCore |
74 | 74 |
75 #endif // ExceptionCode_h | 75 #endif // ExceptionCode_h |
OLD | NEW |