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

Unified Diff: lib/html/templates/html/impl/impl_Element.darttemplate

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/templates/html/impl/impl_DocumentFragment.darttemplate ('k') | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
index 3437c9e3f301565809c23887bc71155230b90400..2f4fefea5b2ce57c1aea1ae38e8684c6aa0ea140 100644
--- a/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -280,11 +280,11 @@ class _FrozenElementListIterator implements Iterator<Element> {
/**
* Gets the next element in the iteration. Throws a
- * [NoMoreElementsException] if no element is left.
+ * [StateError("No more elements")] if no element is left.
*/
Element next() {
if (!hasNext) {
- throw const NoMoreElementsException();
+ throw new StateError("No more elements");
}
return _list[_index++];
« no previous file with comments | « lib/html/templates/html/impl/impl_DocumentFragment.darttemplate ('k') | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698