Index: sdk/lib/io/common.dart |
diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart |
index 5f1700fc0874785dda8b2c437ffde0a97f12b270..94b932a2f28c4f854f3bba42f5565446f3c34ee7 100644 |
--- a/sdk/lib/io/common.dart |
+++ b/sdk/lib/io/common.dart |
@@ -31,9 +31,9 @@ _exceptionFromResponse(response, String message, String path) { |
case _OSERROR_RESPONSE: |
var err = new OSError(response[_OSERROR_RESPONSE_MESSAGE], |
response[_OSERROR_RESPONSE_ERROR_CODE]); |
- return new FileException(message, path, err); |
+ return new FileSystemException(message, path, err); |
case _FILE_CLOSED_RESPONSE: |
- return new FileException("File closed", path); |
+ return new FileSystemException("File closed", path); |
default: |
return new Exception("Unknown error"); |
} |