OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 /// Exit code constants. | |
6 /// | |
7 /// From [the BSD sysexits manpage][manpage]. Not every constant here is used, | |
8 /// even though some of the unused ones may be appropriate for errors | |
9 /// encountered by pub. | |
10 /// | |
11 /// [manpage]: http://www.freebsd.org/cgi/man.cgi?query=sysexits | |
12 library pub.exit_codes; | |
13 | |
14 /// The command completely successfully. | |
15 const SUCCESS = 0; | |
16 | |
17 /// The command was used incorrectly. | |
18 const USAGE = 64; | |
19 | |
20 /// The input data was incorrect. | |
21 const DATA = 65; | |
22 | |
23 /// An input file did not exist or was unreadable. | |
24 const NO_INPUT = 66; | |
25 | |
26 /// The user specified did not exist. | |
27 const NO_USER = 67; | |
28 | |
29 /// The host specified did not exist. | |
30 const NO_HOST = 68; | |
31 | |
32 /// A service is unavailable. | |
33 const UNAVAILABLE = 69; | |
34 | |
35 /// An internal software error has been detected. | |
36 const SOFTWARE = 70; | |
37 | |
38 /// An operating system error has been detected. | |
39 const OS = 71; | |
40 | |
41 /// Some system file did not exist or was unreadable. | |
42 const OS_FILE = 72; | |
43 | |
44 /// A user-specified output file cannot be created. | |
45 const CANT_CREATE = 73; | |
46 | |
47 /// An error occurred while doing I/O on some file. | |
48 const IO = 74; | |
49 | |
50 /// Temporary failure, indicating something that is not really an error. | |
51 const TEMP_FAIL = 75; | |
52 | |
53 /// The remote system returned something invalid during a protocol exchange. | |
54 const PROTOCOL = 76; | |
55 | |
56 /// The user did not have sufficient permissions. | |
57 const NO_PERM = 77; | |
58 | |
59 /// Something was unconfigured or mis-configured. | |
60 const CONFIG = 78; | |
OLD | NEW |