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

Unified Diff: pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart

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: pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
diff --git a/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart b/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
index 37eed486e7ae7b7923ffc038ec9b0d0ba1859286..9746dc010bc64b3c56460f90611167a0a83aa034 100644
--- a/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
+++ b/pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart
@@ -757,7 +757,7 @@ class Dart2JsInterfaceMirror extends Dart2JsObjectMirror
bool get isDeclaration => true;
List<TypeMirror> get typeArguments {
- throw new UnsupportedOperationException(
+ throw new StateError(
'Declarations do not have type arguments');
}
@@ -840,7 +840,7 @@ class Dart2JsTypedefMirror extends Dart2JsTypeElementMirror
bool get isTypedef => true;
List<TypeMirror> get typeArguments {
- throw new UnsupportedOperationException(
+ throw new StateError(
'Declarations do not have type arguments');
}

Powered by Google App Engine
This is Rietveld 408576698