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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 #endif | 77 #endif |
78 #if ENABLE(SVG) | 78 #if ENABLE(SVG) |
79 , SVGExceptionType | 79 , SVGExceptionType |
80 #endif | 80 #endif |
81 #if ENABLE(DATABASE) | 81 #if ENABLE(DATABASE) |
82 , SQLExceptionType | 82 , SQLExceptionType |
83 #endif | 83 #endif |
84 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) | 84 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) |
85 , FileExceptionType | 85 , FileExceptionType |
86 #endif | 86 #endif |
| 87 #if ENABLE(INDEXED_DATABASE) |
| 88 , IDBDatabaseExceptionType |
| 89 #endif |
87 }; | 90 }; |
88 | 91 |
89 | 92 |
90 struct ExceptionCodeDescription { | 93 struct ExceptionCodeDescription { |
91 const char* typeName; // has spaces and is suitable for use in exception
description strings; maximum length is 10 characters | 94 const char* typeName; // has spaces and is suitable for use in exception
description strings; maximum length is 10 characters |
92 const char* name; // exception name, also intended for use in exception
description strings; 0 if name not known; maximum length is 27 characters | 95 const char* name; // exception name, also intended for use in exception
description strings; 0 if name not known; maximum length is 27 characters |
93 const char* description; // exception description, intended for use in e
xception strings; more readable explanation of error | 96 const char* description; // exception description, intended for use in e
xception strings; more readable explanation of error |
94 int code; // numeric value of the exception within a particular type | 97 int code; // numeric value of the exception within a particular type |
95 ExceptionType type; | 98 ExceptionType type; |
96 }; | 99 }; |
97 void getExceptionCodeDescription(ExceptionCode, ExceptionCodeDescription&); | 100 void getExceptionCodeDescription(ExceptionCode, ExceptionCodeDescription&); |
98 | 101 |
99 } // namespace WebCore | 102 } // namespace WebCore |
100 | 103 |
101 #endif // ExceptionCode_h | 104 #endif // ExceptionCode_h |
OLD | NEW |