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

Side by Side Diff: sdk/lib/core/errors.dart

Issue 11442009: Make RuntimeError an Error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | sdk/lib/core/exceptions.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 class Error { 5 class Error {
6 const Error(); 6 const Error();
7 7
8 /** 8 /**
9 * Safely convert a value to a [String] description. 9 * Safely convert a value to a [String] description.
10 * 10 *
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 class OutOfMemoryError implements Error { 239 class OutOfMemoryError implements Error {
240 const OutOfMemoryError(); 240 const OutOfMemoryError();
241 String toString() => "Out of Memory"; 241 String toString() => "Out of Memory";
242 } 242 }
243 243
244 class StackOverflowError implements Error { 244 class StackOverflowError implements Error {
245 const StackOverflowError(); 245 const StackOverflowError();
246 String toString() => "Stack Overflow"; 246 String toString() => "Stack Overflow";
247 } 247 }
248
249 /**
250 * Exception thrown when a runtime error occurs.
karlklose 2012/12/07 09:27:38 Exception -> Error.
Johnni Winther 2012/12/11 15:30:24 Done.
251 */
252 class RuntimeError implements Error {
Lasse Reichstein Nielsen 2012/12/06 19:40:54 If the VM doesn't use this class, and I don't thin
Johnni Winther 2012/12/11 15:30:24 Some language tests rely on it so it cannot be mov
253 final message;
254 RuntimeError(this.message);
255 String toString() => "RuntimeError: $message";
256 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/core/exceptions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698