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 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
8 | 8 |
9 static const String INDEX_SIZE = 'IndexSizeError'; | 9 static const String INDEX_SIZE = 'IndexSizeError'; |
10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; | 10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; |
(...skipping 29 matching lines...) Expand all Loading... |
40 return errorName; | 40 return errorName; |
41 } | 41 } |
42 $endif | 42 $endif |
43 $if JSINTEROP | 43 $if JSINTEROP |
44 String _name; | 44 String _name; |
45 String _message; | 45 String _message; |
46 | 46 |
47 // To suppress missing implicit constructor warnings. | 47 // To suppress missing implicit constructor warnings. |
48 factory DomException._() { throw new UnsupportedError("Not supported"); } | 48 factory DomException._() { throw new UnsupportedError("Not supported"); } |
49 | 49 |
| 50 @Deprecated("Internal Use Only") |
50 static DomException internalCreateDomException() { | 51 static DomException internalCreateDomException() { |
51 return new DomException._internalWrap(); | 52 return new DomException._internalWrap(); |
52 } | 53 } |
53 | 54 |
54 js.JsObject blink_jsObject; | 55 js.JsObject blink_jsObject; |
55 | 56 |
56 factory DomException._internalWrap() { | 57 factory DomException._internalWrap() { |
57 return new DomException.internal_(); | 58 return new DomException.internal_(); |
58 } | 59 } |
59 | 60 |
(...skipping 24 matching lines...) Expand all Loading... |
84 | 85 |
85 $else | 86 $else |
86 $!MEMBERS | 87 $!MEMBERS |
87 $endif | 88 $endif |
88 $if DART2JS | 89 $if DART2JS |
89 @DomName('DOMException.toString') | 90 @DomName('DOMException.toString') |
90 @DocsEditable() | 91 @DocsEditable() |
91 String toString() => JS('String', 'String(#)', this); | 92 String toString() => JS('String', 'String(#)', this); |
92 $endif | 93 $endif |
93 } | 94 } |
OLD | NEW |