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

Unified Diff: lib/core/errors.dart

Issue 11269045: Convert NoMoreElementsException and EmptyQueueException to StateError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/types/concrete_types_inferrer.dart ('k') | lib/core/exceptions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/errors.dart
diff --git a/lib/core/errors.dart b/lib/core/errors.dart
index eca6fea8f426adfa811e263be69e811da3b20fac..9a16d83d2d2bd23964cd7fb7b1480f2619e0f74b 100644
--- a/lib/core/errors.dart
+++ b/lib/core/errors.dart
@@ -156,7 +156,7 @@ class NoSuchMethodError implements Error {
class UnsupportedError implements Error {
final String message;
UnsupportedError(this.message);
- String toString() => message;
+ String toString() => "Unsupported operation: message";
}
/**
@@ -168,7 +168,7 @@ class UnsupportedError implements Error {
class StateError implements Error {
final String message;
StateError(this.message);
- String toString() => message;
+ String toString() => "Bad state: message";
}
« no previous file with comments | « lib/compiler/implementation/types/concrete_types_inferrer.dart ('k') | lib/core/exceptions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698