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

Unified Diff: sdk/lib/_internal/pub/lib/src/utils.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/_internal/pub/lib/src/safe_http_server.dart ('k') | sdk/lib/io/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/utils.dart
diff --git a/sdk/lib/_internal/pub/lib/src/utils.dart b/sdk/lib/_internal/pub/lib/src/utils.dart
index befd57cc450b6483276c01067262101933a34a43..c67ce5720ec48ecdfaf1757c520407d16ac06c7f 100644
--- a/sdk/lib/_internal/pub/lib/src/utils.dart
+++ b/sdk/lib/_internal/pub/lib/src/utils.dart
@@ -529,14 +529,14 @@ void fail(String message) {
bool isUserFacingException(error) {
return error is ApplicationException ||
// TODO(nweiz): clean up this branch when issue 9955 is fixed.
- error is DirectoryIOException ||
- error is FileIOException ||
+ error is DirectoryException ||
+ error is FileException ||
error is HttpException ||
- error is HttpParserException ||
- error is LinkIOException ||
+ error is HttpException ||
+ error is LinkException ||
error is MimeMultipartException ||
error is OSError ||
error is ProcessException ||
- error is SocketIOException ||
+ error is SocketException ||
error is WebSocketException;
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/safe_http_server.dart ('k') | sdk/lib/io/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698