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

Unified Diff: lib/html/dartium/html_dartium.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:
Download patch
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | lib/html/src/_ListIterators.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 5da7f23b5e64e9602d267eb326099e35e72c91ca..3da80d3e99d65f0304542011c1cddb4e3f960b9b 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -11547,7 +11547,7 @@ class _FilteredElementList implements List {
if (newLength >= len) {
return;
} else if (newLength < 0) {
- throw const ArgumentError("Invalid list length");
+ throw new ArgumentError("Invalid list length");
}
removeRange(newLength - 1, len - newLength);
@@ -12964,11 +12964,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++];
@@ -44201,7 +44201,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/dart2js/html_dart2js.dart ('k') | lib/html/src/_ListIterators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698