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

Unified Diff: lib/html/src/_ListIterators.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/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/impl/impl_DocumentFragment.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/_ListIterators.dart
diff --git a/lib/html/src/_ListIterators.dart b/lib/html/src/_ListIterators.dart
index 039eda61c645951468972ba5abc0c40892e79406..4dd7745cc21e3c36329ddc2e9c4b96dc1210d05e 100644
--- a/lib/html/src/_ListIterators.dart
+++ b/lib/html/src/_ListIterators.dart
@@ -23,7 +23,7 @@ class _VariableSizeListIterator<T> implements Iterator<T> {
T next() {
if (!hasNext) {
- throw const NoMoreElementsException();
+ throw new StateError("No more elements");
}
return _array[_pos++];
}
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/impl/impl_DocumentFragment.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698