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

Unified Diff: corelib/src/exceptions.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | corelib/src/math.dart » ('j') | tests/co19/co19-runtime.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | corelib/src/math.dart » ('j') | tests/co19/co19-runtime.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698