2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
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.
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.
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
19 #ifndef ExceptionCode_h
20 #define ExceptionCode_h
24 // The DOM standards use unsigned short for exception codes.
25 // In our DOM implementation we use int instead, and use different
26 // numerical ranges for different types of DOM exception, so that
27 // an exception of any type can be expressed with a single integer.
28 typedef int ExceptionCode;
31 // Some of these are considered historical since they have been
32 // changed or removed from the specifications.
35 HierarchyRequestError,
37 InvalidCharacterError,
38 NoModificationAllowedError,
41 InUseAttributeError, // Historical. Only used in setAttributeNode etc which have been removed from the DOM specs.
43 // Introduced in DOM Level 2:
46 InvalidModificationError,
50 // Introduced in DOM Level 3:
51 TypeMismatchError, // Historical; use TypeError instead
53 // XMLHttpRequest extension:
56 // Others introduced in HTML5:
65 // These are IDB-specific.
69 TransactionInactiveError,
79 SQLDatabaseError, // Naming conflict with DatabaseError class.
84 // WebIDL exception types, handled by the binding layer.
85 // FIXME: Add GeneralError, EvalError, etc. when implemented in the bindings.
89 } // namespace WebCore
91 #endif // ExceptionCode_h