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

Unified Diff: sdk/lib/io/http.dart

Issue 16123036: Clean up dart:io exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « sdk/lib/io/file_system_entity.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http.dart
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart
index 4ea77f72d75e5591bcb105d792c70036babb3d83..b05a5744d27af934c13bfd42e0781fda09244709 100644
--- a/sdk/lib/io/http.dart
+++ b/sdk/lib/io/http.dart
@@ -1353,27 +1353,21 @@ abstract class DetachedSocket {
}
-class HttpException implements Exception {
- const HttpException([String this.message = ""]);
- String toString() => "HttpException: $message";
+class HttpException implements IOException {
final String message;
-}
+ const HttpException([String this.message = ""]);
-class RedirectException extends HttpException {
- const RedirectException(String message,
- List<RedirectInfo> this.redirects) : super(message);
- final List<RedirectInfo> redirects;
+ String toString() => "HttpException: $message";
}
-class RedirectLimitExceededException extends RedirectException {
- const RedirectLimitExceededException(List<RedirectInfo> redirects)
- : super("Redirect limit exceeded", redirects);
-}
+class RedirectException implements HttpException {
+ final String message;
+ final List<RedirectInfo> redirects;
+ const RedirectException(String this.message,
+ List<RedirectInfo> this.redirects);
-class RedirectLoopException extends RedirectException {
- const RedirectLoopException(List<RedirectInfo> redirects)
- : super("Redirect loop detected", redirects);
+ String toString() => "RedirectException: $message";
}
« no previous file with comments | « sdk/lib/io/file_system_entity.dart ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698