summaryrefslogtreecommitdiffstats
path: root/error_code.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-16 08:13:24 +0100
committerTao Bao <tbao@google.com>2016-11-16 08:13:24 +0100
commitf83101a91150572e6077f08e501b473cd70e15b3 (patch)
treed88f785bf323ebdfc383eb9b06dbda1239c0e819 /error_code.h
parentMerge changes from topic 'minui-cherrypick' (diff)
parentMerge "updater: Fix the wrong return value for package_extract_file()." (diff)
downloadandroid_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.tar
android_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.tar.gz
android_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.tar.bz2
android_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.tar.lz
android_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.tar.xz
android_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.tar.zst
android_bootable_recovery-f83101a91150572e6077f08e501b473cd70e15b3.zip
Diffstat (limited to 'error_code.h')
-rw-r--r--error_code.h83
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_