Index: corelib/src/exceptions.dart |
diff --git a/corelib/src/exceptions.dart b/corelib/src/exceptions.dart |
index 60a29af25ff4843207633245660d4e16c4ceedcd..f81fe2b138b5f6f9b292e00a792432f943225e8c 100644 |
--- a/corelib/src/exceptions.dart |
+++ b/corelib/src/exceptions.dart |
@@ -110,9 +110,13 @@ class StackOverflowException implements Exception { |
} |
-class BadNumberFormatException implements Exception { |
- const BadNumberFormatException(String this._s); |
- String toString() => "BadNumberFormatException: '$_s'"; |
+/** |
+ * Exception thrown when a string or some other data does not have an expected |
+ * format and cannot be parsed or processed. |
+ */ |
+class FormatException implements Exception { |
+ const FormatException(String this._s); |
kasperl
2012/08/03 05:25:19
There's no need to explicitly type the constructor
Bob Nystrom
2012/08/03 17:46:54
Done and good call. After I sent this out, I reali
|
+ String toString() => "FormatException: '$_s'"; |
final String _s; |
} |