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

Unified Diff: lib/compiler/implementation/elements/elements.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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index efcb392b6ce5ccdfb44854c83c9ba2e17ecad2f3..625331da3f73a47b0cd9a7caeb6df5b7e932aae9 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -231,11 +231,11 @@ class Element implements Spannable {
Element get declaration => isPatch ? origin : this;
Element get patch {
- throw new UnsupportedOperationException('patch is not supported on $this');
+ throw new StateError('patch is not supported on $this');
}
Element get origin {
- throw new UnsupportedOperationException('origin is not supported on $this');
+ throw new StateError('origin is not supported on $this');
}
// TODO(johnniwinther): This breaks for libraries (for which enclosing
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/constant_map.dart » ('j') | lib/compiler/implementation/lib/constant_map.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698