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

Unified Diff: lib/math/base.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 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 | « lib/html/src/XMLElementWrappingImplementation.dart ('k') | lib/unittest/core_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/math/base.dart
diff --git a/lib/math/base.dart b/lib/math/base.dart
index db2de6904410b201e1dfdff3c7fa345444d853c2..ac878b7f67d34cecb20a5d23af59d32e27ee78f4 100644
--- a/lib/math/base.dart
+++ b/lib/math/base.dart
@@ -45,16 +45,14 @@ final double SQRT1_2 = 0.7071067811865476;
final double SQRT2 = 1.4142135623730951;
/**
- * Parses a [String] representation of an [int], and returns
- * an [int]. Throws a [BadNumberFormatException] if [str]
- * cannot be parsed as an [int].
+ * Parses a [String] representation of an [int], and returns an [int]. Throws a
+ * [FormatException] if [str] cannot be parsed as an [int].
*/
int parseInt(String str) => MathNatives.parseInt(str);
/**
- * Parses a [String] representation of a [double], and returns
- * a [double]. Throws a [BadNumberFormatException] if [str] cannot
- * be parsed as a [double].
+ * Parses a [String] representation of a [double], and returns a [double].
+ * Throws a [FormatException] if [str] cannot be parsed as a [double].
*/
double parseDouble(String str) => MathNatives.parseDouble(str);
« no previous file with comments | « lib/html/src/XMLElementWrappingImplementation.dart ('k') | lib/unittest/core_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698