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

Unified Diff: runtime/bin/http_impl.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: runtime/bin/http_impl.dart
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart
index c664c512ca6bce3de537be4395153ad939e7dd1a..859a17bc4ecfc10cd18e80216794d392486d7eb6 100644
--- a/runtime/bin/http_impl.dart
+++ b/runtime/bin/http_impl.dart
@@ -167,7 +167,7 @@ class _HttpHeaders implements HttpHeaders {
} else {
try {
_port = Math.parseInt(value.substring(pos + 1));
- } catch (BadNumberFormatException e) {
+ } catch (FormatException e) {
_port = null;
}
}

Powered by Google App Engine
This is Rietveld 408576698