diff options
author | Tao Bao <tbao@google.com> | 2016-11-16 06:27:27 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-11-16 06:27:27 +0100 |
commit | 7e3d156b86b816588379484640f32b66f5bfe4c8 (patch) | |
tree | 65410f83e121df55cbdec80e9b2f746096810cf7 /error_code.h | |
parent | Merge "Add .clang-format style file." am: b76960c984 am: 1f0af0c2ea (diff) | |
parent | updater: Fix the wrong return value for package_extract_file(). (diff) | |
download | android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.tar android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.tar.gz android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.tar.bz2 android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.tar.lz android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.tar.xz android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.tar.zst android_bootable_recovery-7e3d156b86b816588379484640f32b66f5bfe4c8.zip |
Diffstat (limited to 'error_code.h')
-rw-r--r-- | error_code.h | 83 |
1 files changed, 42 insertions, 41 deletions
diff --git a/error_code.h b/error_code.h index dfea0eb38..5dad6b263 100644 --- a/error_code.h +++ b/error_code.h @@ -18,52 +18,53 @@ #define _ERROR_CODE_H_ enum ErrorCode { - kNoError = -1, - kLowBattery = 20, - kZipVerificationFailure, - kZipOpenFailure, - kBootreasonInBlacklist + kNoError = -1, + kLowBattery = 20, + kZipVerificationFailure, + kZipOpenFailure, + kBootreasonInBlacklist }; enum CauseCode { - kNoCause = -1, - kArgsParsingFailure = 100, - kStashCreationFailure, - kFileOpenFailure, - kLseekFailure, - kFreadFailure, - kFwriteFailure, - kFsyncFailure, - kLibfecFailure, - kFileGetPropFailure, - kFileRenameFailure, - kSymlinkFailure, - kSetMetadataFailure, - kTune2FsFailure, - kRebootFailure, - kVendorFailure = 200 + kNoCause = -1, + kArgsParsingFailure = 100, + kStashCreationFailure, + kFileOpenFailure, + kLseekFailure, + kFreadFailure, + kFwriteFailure, + kFsyncFailure, + kLibfecFailure, + kFileGetPropFailure, + kFileRenameFailure, + kSymlinkFailure, + kSetMetadataFailure, + kTune2FsFailure, + kRebootFailure, + kPackageExtractFileFailure, + kVendorFailure = 200 }; enum UncryptErrorCode { - kUncryptNoError = -1, - kUncryptErrorPlaceholder = 50, - kUncryptTimeoutError = 100, - kUncryptFileRemoveError, - kUncryptFileOpenError, - kUncryptSocketOpenError, - kUncryptSocketWriteError, - kUncryptSocketListenError, - kUncryptSocketAcceptError, - kUncryptFstabReadError, - kUncryptFileStatError, - kUncryptBlockOpenError, - kUncryptIoctlError, - kUncryptReadError, - kUncryptWriteError, - kUncryptFileSyncError, - kUncryptFileCloseError, - kUncryptFileRenameError, - kUncryptPackageMissingError, + kUncryptNoError = -1, + kUncryptErrorPlaceholder = 50, + kUncryptTimeoutError = 100, + kUncryptFileRemoveError, + kUncryptFileOpenError, + kUncryptSocketOpenError, + kUncryptSocketWriteError, + kUncryptSocketListenError, + kUncryptSocketAcceptError, + kUncryptFstabReadError, + kUncryptFileStatError, + kUncryptBlockOpenError, + kUncryptIoctlError, + kUncryptReadError, + kUncryptWriteError, + kUncryptFileSyncError, + kUncryptFileCloseError, + kUncryptFileRenameError, + kUncryptPackageMissingError, }; -#endif +#endif // _ERROR_CODE_H_ |