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

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

Issue 11827017: Update remaining usages of Completer.completeException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 11 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/html/dartium/html_dartium.dart ('k') | tests/lib/async/future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index c1d8dc336f209461644076891ecc8264edf1222c..b46a8dcd687d605d81aec4e87554782b2a7b0708 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -662,10 +662,10 @@ class _File extends _FileBase implements File {
completer.complete(this);
};
stream.onError = (e) {
- completer.completeException(e);
+ completer.completeError(e);
};
} catch (e) {
- new Timer(0, (t) => completer.completeException(e));
+ new Timer(0, (t) => completer.completeError(e));
return completer.future;
}
return completer.future;
@@ -685,7 +685,7 @@ class _File extends _FileBase implements File {
return writeAsBytes(data, mode);
} catch (e) {
var completer = new Completer();
- new Timer(0, (t) => completer.completeException(e));
+ new Timer(0, (t) => completer.completeError(e));
return completer.future;
}
}
@@ -788,7 +788,7 @@ class _RandomAccessFile extends _FileBase implements RandomAccessFile {
// handlers without getting exceptions when registering the
// then handler.
new Timer(0, (t) {
- completer.completeException(new FileIOException(
+ completer.completeError(new FileIOException(
"Invalid arguments to read for file '$_name'"));
});
return completer.future;
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/lib/async/future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698