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

Unified Diff: sdk/lib/io/file_system_entity.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/io/file_impl.dart ('k') | sdk/lib/io/link.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_system_entity.dart
diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart
index e930a3594d05f15cc41d1ac7099f01370eef89c0..80f1b39ee4ff86ee6f349787d6d512579e2e49a5 100644
--- a/sdk/lib/io/file_system_entity.dart
+++ b/sdk/lib/io/file_system_entity.dart
@@ -225,7 +225,7 @@ abstract class FileSystemEntity {
* to resolve the path, using the realpath function on linux and
* Mac OS, and the GetFinalPathNameByHandle function on Windows.
* If the path does not point to an existing file system object,
- * [resolveSymbolicLinks] completes the returned Future with an FileException.
+ * [resolveSymbolicLinks] completes the returned Future with an FileSystemException.
*
* On Windows, symbolic links are resolved to their target before applying
* a '..' that follows, and on other platforms, the '..' is applied to the
@@ -256,7 +256,7 @@ abstract class FileSystemEntity {
* filesystem api to resolve the path, using the realpath function
* on linux and Mac OS, and the GetFinalPathNameByHandle function on Windows.
* If the path does not point to an existing file system object,
- * [resolveSymbolicLinksSync] throws a FileException.
+ * [resolveSymbolicLinksSync] throws a FileSystemException.
*
* On Windows, symbolic links are resolved to their target before applying
* a '..' that follows, and on other platforms, the '..' is applied to the
@@ -592,7 +592,7 @@ abstract class FileSystemEntity {
static _throwIfError(Object result, String msg, [String path]) {
if (result is OSError) {
- throw new FileException(msg, path, result);
+ throw new FileSystemException(msg, path, result);
} else if (result is ArgumentError) {
throw result;
}
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | sdk/lib/io/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698