ExitCode.h revision baa3858d3f5d128a5c8466b700098109edcad5f2
1// ExitCode.h
2
3#ifndef __EXIT_CODE_H
4#define __EXIT_CODE_H
5
6namespace NExitCode {
7
8enum EEnum {
9
10  kSuccess       = 0,     // Successful operation
11  kWarning       = 1,     // Non fatal error(s) occurred
12  kFatalError    = 2,     // A fatal error occurred
13  // kCRCError      = 3,     // A CRC error occurred when unpacking
14  // kLockedArchive = 4,     // Attempt to modify an archive previously locked
15  // kWriteError    = 5,     // Write to disk error
16  // kOpenError     = 6,     // Open file error
17  kUserError     = 7,     // Command line option error
18  kMemoryError   = 8,     // Not enough memory for operation
19  // kCreateFileError = 9,     // Create file error
20
21  kUserBreak     = 255   // User stopped the process
22
23};
24
25}
26
27#endif
28