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

Unified Diff: lib/html/templates/html/impl/impl_DocumentFragment.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_DocumentFragment.darttemplate
diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
index e8a1e9dc2c1c90e1dff2be723434c3ac2db5ca02..abd3c0397f0d68a30f8833a6fea4eb07b003cc76 100644
--- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -51,7 +51,7 @@ class _FilteredElementList 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]) {
@@ -120,7 +120,7 @@ class _FrozenCSSClassSet extends _CssClassSet {
_FrozenCSSClassSet() : super(null);
void _write(Set s) {
- throw const UnsupportedOperationException(
+ throw new StateError(
'frozen class set cannot be modified');
}
Set<String> _read() => new Set<String>();
@@ -263,97 +263,97 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
// Setters throw errors rather than being no-ops because we aren't going to
// retain the values that were set, and erroring out seems clearer.
void set attributes(Map<String, String> value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Attributes can't be set for document fragments.");
}
void set classes(Collection<String> value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Classes can't be set for document fragments.");
}
void set dataAttributes(Map<String, String> value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Data attributes can't be set for document fragments.");
}
void set contentEditable(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Content editable can't be set for document fragments.");
}
String get dir {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support text direction.");
}
void set dir(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support text direction.");
}
void set draggable(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Draggable can't be set for document fragments.");
}
void set hidden(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Hidden can't be set for document fragments.");
}
void set id(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"ID can't be set for document fragments.");
}
String get lang {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support language.");
}
void set lang(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support language.");
}
void set scrollLeft(int value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support scrolling.");
}
void set scrollTop(int value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Document fragments don't support scrolling.");
}
void set spellcheck(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Spellcheck can't be set for document fragments.");
}
void set translate(bool value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Spellcheck can't be set for document fragments.");
}
void set tabIndex(int value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Tab index can't be set for document fragments.");
}
void set title(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"Title can't be set for document fragments.");
}
void set webkitdropzone(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"WebKit drop zone can't be set for document fragments.");
}
void set webkitRegionOverflow(String value) {
- throw new UnsupportedOperationException(
+ throw new StateError(
"WebKit region overflow can't be set for document fragments.");
}

Powered by Google App Engine
This is Rietveld 408576698