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

Unified Diff: utils/pub/root_source.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: utils/pub/root_source.dart
diff --git a/utils/pub/root_source.dart b/utils/pub/root_source.dart
index 7fc9784fe0f67d1fc04d70b0e3165a37115c591a..58b5374b1f3451c87254f6f682de77e5897cd5fe 100644
--- a/utils/pub/root_source.dart
+++ b/utils/pub/root_source.dart
@@ -26,7 +26,7 @@ class RootSource extends Source {
}
Future<bool> install(PackageId id, String destPath) {
- throw new UnsupportedOperationException(
+ throw new StateError(
floitsch 2012/10/23 12:50:32 one line.
Lasse Reichstein Nielsen 2012/10/24 12:32:15 Done.
"Can't install from a root source.");
}
}

Powered by Google App Engine
This is Rietveld 408576698