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

Unified Diff: lib/core/sequences.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/core/queue.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/sequences.dart
diff --git a/lib/core/sequences.dart b/lib/core/sequences.dart
index 2489881fa499b877c15421c1f5be115b4170e4da..a9bc87f04f919bff50618464d8cacfea0df6fa34 100644
--- a/lib/core/sequences.dart
+++ b/lib/core/sequences.dart
@@ -198,7 +198,7 @@ class SequenceIterator<E> implements Iterator<E> {
bool get hasNext => _position < _sequence.length;
E next() {
if (hasNext) return _sequence[_position++];
- throw new NoMoreElementsException();
+ throw new StateError("No more elements");
}
}
« no previous file with comments | « lib/core/queue.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698