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

Unified Diff: lib/coreimpl/hash_map_set.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/sequences.dart ('k') | lib/coreimpl/queue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/hash_map_set.dart
diff --git a/lib/coreimpl/hash_map_set.dart b/lib/coreimpl/hash_map_set.dart
index fe4a671557407e0ba049aea891f5f2522b34c4fa..d0c6bcba1b96159f9ae67a10bed0ae2fae14a827 100644
--- a/lib/coreimpl/hash_map_set.dart
+++ b/lib/coreimpl/hash_map_set.dart
@@ -419,7 +419,7 @@ class HashSetIterator<E> implements Iterator<E> {
E next() {
if (!hasNext) {
- throw const NoMoreElementsException();
+ throw new StateError("No more elements");
}
E res = _entries[_nextValidIndex];
_advance();
« no previous file with comments | « lib/core/sequences.dart ('k') | lib/coreimpl/queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698