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

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

Issue 15743017: Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months 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
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 part of dart.core; 5 part of dart.core;
6 6
7 class Error { 7 class Error {
8 const Error(); 8 const Error();
9 9
10 /** 10 /**
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 class OutOfMemoryError implements Error { 227 class OutOfMemoryError implements Error {
228 const OutOfMemoryError(); 228 const OutOfMemoryError();
229 String toString() => "Out of Memory"; 229 String toString() => "Out of Memory";
230 } 230 }
231 231
232 class StackOverflowError implements Error { 232 class StackOverflowError implements Error {
233 const StackOverflowError(); 233 const StackOverflowError();
234 String toString() => "Stack Overflow"; 234 String toString() => "Stack Overflow";
235 } 235 }
236 236
237 class FiftyThreeBitOverflowError implements Error {
238 const FiftyThreeBitOverflowError();
239 String toString() => "53-bit Overflow";
srdjan 2013/05/28 10:57:14 I think we should provide more information here (i
zra 2013/05/28 17:06:39 Done.
240 }
241
237 /** 242 /**
238 * Error thrown when a runtime error occurs. 243 * Error thrown when a runtime error occurs.
239 */ 244 */
240 class RuntimeError implements Error { 245 class RuntimeError implements Error {
241 final message; 246 final message;
242 RuntimeError(this.message); 247 RuntimeError(this.message);
243 String toString() => "RuntimeError: $message"; 248 String toString() => "RuntimeError: $message";
244 } 249 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698