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

Unified Diff: samples/calculator/tape.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
Index: samples/calculator/tape.dart
diff --git a/samples/calculator/tape.dart b/samples/calculator/tape.dart
index 5621d20687aff62c49b8bf6c9401085a58bb0455..bb7c6fc501ef902e992c6e6b169ffecc9d65aad1 100644
--- a/samples/calculator/tape.dart
+++ b/samples/calculator/tape.dart
@@ -22,7 +22,7 @@ class Tape {
if (number != "." && number != "-" && number != "-.") {
try {
numberAsValue = Math.parseDouble(number.length == 0 ? "0" : number);
- } catch (final BadNumberFormatException e) {
+ } catch (final FormatException e) {
displayError(e.toString());
return;
}
@@ -213,10 +213,10 @@ class Tape {
void clearTotal() {
final element = new Element.tag('div');
-
+
element.innerHTML = tapeUI.clearCalculation();
tapeUI.tape.elements.add(element.elements[0]);
-
+
scrollToTapeBottom();
}

Powered by Google App Engine
This is Rietveld 408576698