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

Unified Diff: corelib/src/math.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 | « corelib/src/exceptions.dart ('k') | corelib/unified/math/base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/math.dart
diff --git a/corelib/src/math.dart b/corelib/src/math.dart
index 401679f855aeddbbf96f70d884591bdae47eee7e..91fbf553f882dc5d1c202c2746d08a29150f2f5e 100644
--- a/corelib/src/math.dart
+++ b/corelib/src/math.dart
@@ -50,16 +50,14 @@ class Math {
static 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].
*/
static 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].
*/
static double parseDouble(String str) => MathNatives.parseDouble(str);
« no previous file with comments | « corelib/src/exceptions.dart ('k') | corelib/unified/math/base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698