| Index: lib/coreimpl/queue.dart
|
| diff --git a/lib/coreimpl/queue.dart b/lib/coreimpl/queue.dart
|
| index 84c4efd33cc29cd1230a6f46a08bfd7ec375eb61..5fe00b30a9cb540c1c2adff944169bbb3e061bde 100644
|
| --- a/lib/coreimpl/queue.dart
|
| +++ b/lib/coreimpl/queue.dart
|
| @@ -74,7 +74,7 @@ class _DoubleLinkedQueueEntrySentinel<E> extends DoubleLinkedQueueEntry<E> {
|
| }
|
|
|
| E remove() {
|
| - throw const EmptyQueueException();
|
| + throw new StateError("Empty queue");
|
| }
|
|
|
| DoubleLinkedQueueEntry<E> _asNonSentinelEntry() {
|
| @@ -87,7 +87,7 @@ class _DoubleLinkedQueueEntrySentinel<E> extends DoubleLinkedQueueEntry<E> {
|
| }
|
|
|
| E get element {
|
| - throw const EmptyQueueException();
|
| + throw new StateError("Empty queue");
|
| }
|
| }
|
|
|
| @@ -255,7 +255,7 @@ class _DoubleLinkedQueueIterator<E> implements Iterator<E> {
|
|
|
| E next() {
|
| if (!hasNext) {
|
| - throw const NoMoreElementsException();
|
| + throw new StateError("No more elements");
|
| }
|
| _currentEntry = _currentEntry._next;
|
| return _currentEntry.element;
|
|
|