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

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

Issue 2585443002: Error checking for Stdio calls (Closed)
Patch Set: Fix Windows Created 4 years 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 | « runtime/bin/stdio_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/stdio.dart
diff --git a/sdk/lib/io/stdio.dart b/sdk/lib/io/stdio.dart
index 67f4370b16dec3ff489f4fb7d92b124efd3067d1..35560a9ff2d5d1759e0509b6e6677df0cf18ea12 100644
--- a/sdk/lib/io/stdio.dart
+++ b/sdk/lib/io/stdio.dart
@@ -216,6 +216,19 @@ class StdoutException implements IOException {
}
}
+
+class StdinException implements IOException {
+ final String message;
+ final OSError osError;
+
+ const StdinException(this.message, [this.osError]);
+
+ String toString() {
+ return "StdinException: $message${osError == null ? "" : ", $osError"}";
+ }
+}
+
+
class _StdConsumer implements StreamConsumer<List<int>> {
final _file;
« no previous file with comments | « runtime/bin/stdio_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698