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

Unified Diff: sdk/lib/_internal/pub/lib/src/utils.dart

Issue 26968003: Remove DirectoryException and LinkException from dart:io and use FileException instaed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge with master. Created 7 years, 2 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/io.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 392310b9c290aac3539ccff3bb4074c0556e93e8..8fab364e61e18389b7ef7b6868c89604a7f54983 100644
--- a/sdk/lib/_internal/pub/lib/src/utils.dart
+++ b/sdk/lib/_internal/pub/lib/src/utils.dart
@@ -713,9 +713,8 @@ final _userFacingExceptions = new Set<String>.from([
// invalid import.
'IsolateSpawnException',
// TODO(nweiz): clean up the dart:io errors when issue 9955 is fixed.
- 'DirectoryException', 'FileException', 'HttpException', 'HttpException',
- 'LinkException', 'OSError', 'ProcessException', 'SocketException',
- 'WebSocketException'
+ 'FileSystemException', 'HttpException', 'HttpException', 'OSError',
+ 'ProcessException', 'SocketException', 'WebSocketException'
]);
/// Returns whether [error] is a user-facing error object. This includes both
@@ -731,11 +730,9 @@ bool isUserFacingException(error) {
error is AnalyzerError ||
error is AnalyzerErrorGroup ||
error is IsolateSpawnException ||
- error is DirectoryException ||
- error is FileException ||
+ error is FileSystemException ||
error is HttpException ||
error is HttpException ||
- error is LinkException ||
error is OSError ||
error is ProcessException ||
error is SocketException ||
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/io.dart ('k') | sdk/lib/io/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698