Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1339)

Side by Side Diff: corelib/src/exceptions.dart

Issue 8989015: Updates the corelib to the new default specification for interfaces and new factory syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « corelib/src/duration.dart ('k') | corelib/src/future.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Exceptions are thrown either by the VM or from Dart code. 5 // Exceptions are thrown either by the VM or from Dart code.
6 6
7 /** 7 /**
8 * Interface implemented by all core library exceptions. 8 * Interface implemented by all core library exceptions.
9 */ 9 */
10 interface Exception factory ExceptionImplementation { 10 interface Exception default ExceptionImplementation {
11 const Exception([var msg]); 11 const Exception([var msg]);
12 } 12 }
13 13
14 14
15 /** 15 /**
16 * Exception thrown because of an index outside of the valid range. 16 * Exception thrown because of an index outside of the valid range.
17 */ 17 */
18 class IndexOutOfRangeException implements Exception { 18 class IndexOutOfRangeException implements Exception {
19 const IndexOutOfRangeException(int this._index); 19 const IndexOutOfRangeException(int this._index);
20 String toString() => "IndexOutOfRangeException: $_index"; 20 String toString() => "IndexOutOfRangeException: $_index";
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 String toString() => "IllegalJSRegExpException: '$_pattern' '$_errmsg'"; 138 String toString() => "IllegalJSRegExpException: '$_pattern' '$_errmsg'";
139 final String _pattern; 139 final String _pattern;
140 final String _errmsg; 140 final String _errmsg;
141 } 141 }
142 142
143 143
144 class IntegerDivisionByZeroException implements Exception { 144 class IntegerDivisionByZeroException implements Exception {
145 const IntegerDivisionByZeroException(); 145 const IntegerDivisionByZeroException();
146 String toString() => "IntegerDivisionByZeroException"; 146 String toString() => "IntegerDivisionByZeroException";
147 } 147 }
OLDNEW
« no previous file with comments | « corelib/src/duration.dart ('k') | corelib/src/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698