Chromium Code Reviews| 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); |
| } |