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

Unified Diff: pkg/dartdoc/lib/src/mirrors/util.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 | « pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | pkg/logging/lib/logging.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/src/mirrors/util.dart
diff --git a/pkg/dartdoc/lib/src/mirrors/util.dart b/pkg/dartdoc/lib/src/mirrors/util.dart
index 760b9d288fea7ca0e48db8375775097242c91417..c73f5c8649a419a6ee321bdcc810aa220a561629 100644
--- a/pkg/dartdoc/lib/src/mirrors/util.dart
+++ b/pkg/dartdoc/lib/src/mirrors/util.dart
@@ -18,11 +18,11 @@ abstract class AbstractMap<K,V> implements Map<K,V> {
}
void operator []=(K key, value) {
- throw new UnsupportedOperationException('[]= is not supported');
+ throw new UnsupportedError('[]= is not supported');
}
void clear() {
- throw new UnsupportedOperationException('clear() is not supported');
+ throw new UnsupportedError('clear() is not supported');
}
bool containsKey(K key) {
@@ -68,13 +68,13 @@ abstract class AbstractMap<K,V> implements Map<K,V> {
}
V remove(K key) {
- throw new UnsupportedOperationException('V remove(K key) is not supported');
+ throw new UnsupportedError('V remove(K key) is not supported');
}
}
/**
* [ImmutableMapWrapper] wraps a (mutable) map as an immutable map where all
- * mutating operations throw [UnsupportedOperationException] upon invocation.
+ * mutating operations throw [UnsupportedError] upon invocation.
*/
class ImmutableMapWrapper<K,V> extends AbstractMap<K,V> {
final Map<K,V> _map;
« no previous file with comments | « pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | pkg/logging/lib/logging.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698