ExitCode.h 747 B

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