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

Side by Side Diff: sdk/lib/io/process.dart

Issue 1103953002: Fix Typo in exitCode documentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 // TODO(ager): The only reason for this class is that we 7 // TODO(ager): The only reason for this class is that we
8 // cannot patch a top-level at this point. 8 // cannot patch a top-level at this point.
9 class _ProcessUtils { 9 class _ProcessUtils {
10 external static void _exit(int status); 10 external static void _exit(int status);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * See [exit] for more information on how to chose a value for the 61 * See [exit] for more information on how to chose a value for the
62 * exit code. 62 * exit code.
63 */ 63 */
64 void set exitCode(int code) { 64 void set exitCode(int code) {
65 if (code is !int) { 65 if (code is !int) {
66 throw new ArgumentError("Integer value for exit code expected"); 66 throw new ArgumentError("Integer value for exit code expected");
67 } 67 }
68 _ProcessUtils._setExitCode(code); 68 _ProcessUtils._setExitCode(code);
69 } 69 }
70 70
71 /* 71 /**
72 * Get the global exit code for the Dart VM. 72 * Get the global exit code for the Dart VM.
73 * 73 *
74 * The exit code is global for the Dart VM and the last assignment to 74 * The exit code is global for the Dart VM and the last assignment to
75 * exitCode from any isolate determines the exit code of the Dart VM 75 * exitCode from any isolate determines the exit code of the Dart VM
76 * on normal termination. 76 * on normal termination.
77 * 77 *
78 * See [exit] for more information on how to chose a value for the 78 * See [exit] for more information on how to chose a value for the
79 * exit code. 79 * exit code.
80 */ 80 */
81 int get exitCode => _ProcessUtils._getExitCode(); 81 int get exitCode => _ProcessUtils._getExitCode();
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 final int errorCode; 572 final int errorCode;
573 573
574 const ProcessException(this.executable, this.arguments, [this.message = "", 574 const ProcessException(this.executable, this.arguments, [this.message = "",
575 this.errorCode = 0]); 575 this.errorCode = 0]);
576 String toString() { 576 String toString() {
577 var msg = (message == null) ? 'OS error code: $errorCode' : message; 577 var msg = (message == null) ? 'OS error code: $errorCode' : message;
578 var args = arguments.join(' '); 578 var args = arguments.join(' ');
579 return "ProcessException: $msg\n Command: $executable $args"; 579 return "ProcessException: $msg\n Command: $executable $args";
580 } 580 }
581 } 581 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698