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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/core/exceptions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/errors.dart
diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
index eeb0c04fdef2e4f25040354dc318709b320b4728..ab087ee85b4928fc3261653fb3afb4ae227ce809 100644
--- a/sdk/lib/core/errors.dart
+++ b/sdk/lib/core/errors.dart
@@ -245,3 +245,12 @@ class StackOverflowError implements Error {
const StackOverflowError();
String toString() => "Stack Overflow";
}
+
+/**
+ * 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.
+ */
+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
+ final message;
+ RuntimeError(this.message);
+ String toString() => "RuntimeError: $message";
+}
« 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