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

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

Issue 18090003: Add FileException.path and clean up file 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
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 a63b12ceb804bf2200bb48049a26e8160bfc34dd..b764f04be7ca151d28701ae498155411f4b86f5f 100644
--- a/sdk/lib/io/file_system_entity.dart
+++ b/sdk/lib/io/file_system_entity.dart
@@ -79,7 +79,8 @@ class FileStat {
return service.call(request).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
- "Error getting stat of '$path'");
+ "Error getting stat",
+ path);
}
// Unwrap the real list from the "I'm not an error" wrapper.
List data = response[1];
@@ -185,8 +186,7 @@ abstract class FileSystemEntity {
request[2] = followLinks;
return service.call(request).then((response) {
if (_isErrorResponse(response)) {
- throw _exceptionFromResponse(response,
- "Error getting type of '$path'");
+ throw _exceptionFromResponse(response, "Error getting type", path);
}
return response;
});
@@ -214,7 +214,7 @@ abstract class FileSystemEntity {
return service.call(request).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
- "Error in FileSystemEntity.identical($path1, $path2)");
+ "Error in FileSystemEntity.identical($path1, $path2)", "");
}
return response;
});

Powered by Google App Engine
This is Rietveld 408576698