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

Unified Diff: pkg/dartdoc/lib/mirrors_util.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/templates/html/impl/impl_Element.darttemplate ('k') | runtime/lib/array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/mirrors_util.dart
diff --git a/pkg/dartdoc/lib/mirrors_util.dart b/pkg/dartdoc/lib/mirrors_util.dart
index a948f7f9a1ae987666aac22c53a5fe0acc6a13c5..183311beaca5ef1395a8928b2db9a9bc7bbeb3f0 100644
--- a/pkg/dartdoc/lib/mirrors_util.dart
+++ b/pkg/dartdoc/lib/mirrors_util.dart
@@ -121,7 +121,7 @@ class HierarchyIterator implements Iterator<InterfaceMirror> {
InterfaceMirror type;
if (queue.isEmpty) {
if (object === null) {
- throw new NoMoreElementsException();
+ throw new StateError("No more elements");
}
type = object;
object = null;
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | runtime/lib/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698