Chromium Code Reviews| Index: lib/coreimpl/exceptions.dart |
| diff --git a/lib/coreimpl/exceptions.dart b/lib/coreimpl/exceptions.dart |
| index c2dd3a2f4df3754d168a340d568f1eee2b9ee756..72559ba6e231a91abf191d6fb948706c4db13b1b 100644 |
| --- a/lib/coreimpl/exceptions.dart |
| +++ b/lib/coreimpl/exceptions.dart |
| @@ -3,7 +3,7 @@ |
| // BSD-style license that can be found in the LICENSE file. |
| class ExceptionImplementation implements Exception { |
| - const ExceptionImplementation([msg = null]) : _msg = msg; |
| - String toString() => (_msg === null) ? "Exception" : "Exception: $_msg"; |
| - final _msg; |
| + final message; |
|
ahe
2012/09/18 12:30:56
Move to public API?
Lasse Reichstein Nielsen
2012/09/18 12:39:42
Eventually, yes.
|
| + const ExceptionImplementation([this.message]); |
| + String toString() => (message == null) ? "Exception" : "Exception: $message"; |
|
ahe
2012/09/18 12:30:56
FYI, I like this general approach to toString:
'C
Lasse Reichstein Nielsen
2012/09/18 12:39:42
The problem with "throwables" is that their toStri
|
| } |