OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
7 /// @domName $DOMNAME | 7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
8 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | |
9 | 8 |
10 static const String INDEX_SIZE = 'IndexSizeError'; | 9 static const String INDEX_SIZE = 'IndexSizeError'; |
11 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; | 10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; |
12 static const String WRONG_DOCUMENT = 'WrongDocumentError'; | 11 static const String WRONG_DOCUMENT = 'WrongDocumentError'; |
13 static const String INVALID_CHARACTER = 'InvalidCharacterError'; | 12 static const String INVALID_CHARACTER = 'InvalidCharacterError'; |
14 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; | 13 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; |
15 static const String NOT_FOUND = 'NotFoundError'; | 14 static const String NOT_FOUND = 'NotFoundError'; |
16 static const String NOT_SUPPORTED = 'NotSupportedError'; | 15 static const String NOT_SUPPORTED = 'NotSupportedError'; |
17 static const String INVALID_STATE = 'InvalidStateError'; | 16 static const String INVALID_STATE = 'InvalidStateError'; |
18 static const String SYNTAX = 'SyntaxError'; | 17 static const String SYNTAX = 'SyntaxError'; |
(...skipping 17 matching lines...) Expand all Loading... |
36 // and 6 still return SECURITY_ERR. | 35 // and 6 still return SECURITY_ERR. |
37 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; | 36 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; |
38 // Chrome release still uses old string, remove this line when Chrome stable | 37 // Chrome release still uses old string, remove this line when Chrome stable |
39 // also prints out SyntaxError. | 38 // also prints out SyntaxError. |
40 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; | 39 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; |
41 return errorName; | 40 return errorName; |
42 } | 41 } |
43 $endif | 42 $endif |
44 $!MEMBERS | 43 $!MEMBERS |
45 } | 44 } |
OLD | NEW |