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

Unified Diff: lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (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
Index: lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
index dc39ade25aa629891d31a4bae80e12b04b5fa2e0..25f4453103f59886e64942e1f621c8af5a33a965 100644
--- a/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -83,7 +83,7 @@ class _ChildrenElementList implements List {
void set length(int newLength) {
// TODO(jacobr): remove children when length is reduced.
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Element add(_ElementImpl value) {
@@ -102,7 +102,7 @@ class _ChildrenElementList implements List {
}
void sort([Comparator<Element> compare = Comparable.compare]) {
- throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
+ throw new StateError('TODO(jacobr): should we impl?');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
@@ -215,7 +215,7 @@ class _FrozenElementList implements List {
Element operator [](int index) => _nodeList[index];
void operator []=(int index, Element value) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void set length(int newLength) {
@@ -223,33 +223,33 @@ class _FrozenElementList implements List {
}
void add(Element value) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void addLast(Element value) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Iterator<Element> iterator() => new _FrozenElementListIterator(this);
void addAll(Collection<Element> collection) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void sort([Comparator<Element> compare = Comparable.compare]) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void setRange(int start, int rangeLength, List from, [int startFrom = 0]) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
void insertRange(int start, int rangeLength, [initialValue = null]) {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
List<Element> getRange(int start, int rangeLength) =>
@@ -262,11 +262,11 @@ class _FrozenElementList implements List {
_nodeList.lastIndexOf(element, start);
void clear() {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Element removeLast() {
- throw const UnsupportedOperationException('');
+ throw new StateError('');
}
Element last() => _nodeList.last();

Powered by Google App Engine
This is Rietveld 408576698