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

Unified Diff: lib/core/sequences.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ADded test expectations. 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/list.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
}
« no previous file with comments | « lib/core/list.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698