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

Unified Diff: sdk/lib/_internal/pub/lib/src/utils.dart

Issue 184113007: Support JSON output for pub build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Re-upload. Created 6 years, 10 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: sdk/lib/_internal/pub/lib/src/utils.dart
diff --git a/sdk/lib/_internal/pub/lib/src/utils.dart b/sdk/lib/_internal/pub/lib/src/utils.dart
index c5f81c25c079486a05ce8f0b4b677305949587b8..6980cd5463de1b52b43f68cd884f5eabe8a274d6 100644
--- a/sdk/lib/_internal/pub/lib/src/utils.dart
+++ b/sdk/lib/_internal/pub/lib/src/utils.dart
@@ -855,7 +855,18 @@ class ApplicationException implements Exception {
/// A class for command usage exceptions.
class UsageException extends ApplicationException {
- UsageException(String message)
+ /// The command usage information.
+ final String usage;
+
+ UsageException(String message, this.usage)
+ : super(message);
+
+ String toString() => "$message\n\n$usage";
+}
+
+/// A class for command input data exceptions.
nweiz 2014/03/05 02:36:52 This description is pretty terse. I assume it refe
Bob Nystrom 2014/03/07 00:42:18 Reword a bit. It's basically an exception form of
nweiz 2014/03/07 00:57:13 I still don't really understand how this should be
Bob Nystrom 2014/03/07 20:38:42 I look at FormatException as "there's something wr
+class DataException extends ApplicationException {
+ DataException(String message)
: super(message);
}

Powered by Google App Engine
This is Rietveld 408576698