| 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 |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Lesser General Public License for more details. | 12 * Lesser General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Lesser General Public | 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 | 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 U
SA | 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 U
SA |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 #ifndef ExceptionCode_h | 19 #ifndef SKY_ENGINE_CORE_DOM_EXCEPTIONCODE_H_ |
| 20 #define ExceptionCode_h | 20 #define SKY_ENGINE_CORE_DOM_EXCEPTIONCODE_H_ |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 // The DOM standards use unsigned short for exception codes. | 24 // The DOM standards use unsigned short for exception codes. |
| 25 // In our DOM implementation we use int instead, and use different | 25 // In our DOM implementation we use int instead, and use different |
| 26 // numerical ranges for different types of DOM exception, so that | 26 // numerical ranges for different types of DOM exception, so that |
| 27 // an exception of any type can be expressed with a single integer. | 27 // an exception of any type can be expressed with a single integer. |
| 28 typedef int ExceptionCode; | 28 typedef int ExceptionCode; |
| 29 | 29 |
| 30 | 30 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 enum V8ErrorType { | 85 enum V8ErrorType { |
| 86 V8GeneralError = 1000, | 86 V8GeneralError = 1000, |
| 87 V8TypeError, | 87 V8TypeError, |
| 88 V8RangeError, | 88 V8RangeError, |
| 89 V8SyntaxError, | 89 V8SyntaxError, |
| 90 V8ReferenceError, | 90 V8ReferenceError, |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // ExceptionCode_h | 95 #endif // SKY_ENGINE_CORE_DOM_EXCEPTIONCODE_H_ |
| OLD | NEW |