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

Unified Diff: lib/core/queue.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/iterator.dart ('k') | lib/core/sequences.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/queue.dart
diff --git a/lib/core/queue.dart b/lib/core/queue.dart
index beff3d7b9942e9e632d43bd9cc999fc8c1fd488c..33da871e6dc1e93198781ac23382f579891e73d9 100644
--- a/lib/core/queue.dart
+++ b/lib/core/queue.dart
@@ -22,13 +22,13 @@ abstract class Queue<E> extends Collection<E> {
/**
* Removes and returns the first element of this queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
+ * [StateError] exception if this queue is empty.
*/
E removeFirst();
/**
* Removes and returns the last element of the queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
+ * [StateError] exception if this queue is empty.
*/
E removeLast();
@@ -55,13 +55,13 @@ abstract class Queue<E> extends Collection<E> {
/**
* Returns the first element of the queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
+ * [StateError] exception if this queue is empty.
*/
E first();
/**
* Returns the last element of the queue. Throws an
- * [EmptyQueueException] exception if this queue is empty.
+ * [StateError] exception if this queue is empty.
*/
E last();
« no previous file with comments | « lib/core/iterator.dart ('k') | lib/core/sequences.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698