Index: lib/core/sequences.dart |
diff --git a/lib/core/sequences.dart b/lib/core/sequences.dart |
index 5ed4366aa2e91f58330897c94e713d0d814d0c27..a863d67e3e1cf4a56259d616df0cdba253e3dbde 100644 |
--- a/lib/core/sequences.dart |
+++ b/lib/core/sequences.dart |
@@ -128,62 +128,62 @@ class SequenceList<E> extends SequenceCollection<E> implements List<E> { |
} |
void operator []=(int index, E value) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot modify an unmodifiable list"); |
} |
void set length(int newLength) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot change the length of an unmodifiable list"); |
} |
void add(E value) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot add to an unmodifiable list"); |
} |
void addLast(E value) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot add to an unmodifiable list"); |
} |
void addAll(Collection<E> collection) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot add to an unmodifiable list"); |
} |
void sort([Comparator<E> compare]) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot modify an unmodifiable list"); |
} |
void clear() { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot clear an unmodifiable list"); |
} |
E removeAt(int index) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot remove in an unmodifiable list"); |
} |
E removeLast() { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot remove in an unmodifiable list"); |
} |
void setRange(int start, int length, List<E> from, [int startFrom]) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot modify an unmodifiable list"); |
} |
void removeRange(int start, int length) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot remove in an unmodifiable list"); |
} |
void insertRange(int start, int length, [E initialValue]) { |
- throw new UnsupportedOperationException( |
+ throw new UnsupportedError( |
"Cannot insert range in an unmodifiable list"); |
} |
} |