1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/update/common/errors.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,80 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:set ts=2 sw=2 sts=2 et cindent: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef Errors_h__ 1.11 +#define Errors_h__ 1.12 + 1.13 +#define OK 0 1.14 + 1.15 +// Old unused error codes: 1.16 +// #define MEM_ERROR 1 // Replaced with errors 10-16 (inclusive) 1.17 +// #define IO_ERROR 2 // Use READ_ERROR or WRITE_ERROR instead 1.18 + 1.19 +// Error codes 3-16 are for general update problems. 1.20 +#define USAGE_ERROR 3 1.21 +#define CRC_ERROR 4 1.22 +#define PARSE_ERROR 5 1.23 +#define READ_ERROR 6 1.24 +#define WRITE_ERROR 7 1.25 +// #define UNEXPECTED_ERROR 8 // Replaced with errors 38-42 1.26 +#define ELEVATION_CANCELED 9 1.27 +#define READ_STRINGS_MEM_ERROR 10 1.28 +#define ARCHIVE_READER_MEM_ERROR 11 1.29 +#define BSPATCH_MEM_ERROR 12 1.30 +#define UPDATER_MEM_ERROR 13 1.31 +#define UPDATER_QUOTED_PATH_MEM_ERROR 14 1.32 +#define BAD_ACTION_ERROR 15 1.33 +#define STRING_CONVERSION_ERROR 16 1.34 + 1.35 +// Error codes 17-23 are related to security tasks for MAR 1.36 +// signing and MAR protection. 1.37 +#define CERT_LOAD_ERROR 17 1.38 +#define CERT_HANDLING_ERROR 18 1.39 +#define CERT_VERIFY_ERROR 19 1.40 +#define ARCHIVE_NOT_OPEN 20 1.41 +#define COULD_NOT_READ_PRODUCT_INFO_BLOCK_ERROR 21 1.42 +#define MAR_CHANNEL_MISMATCH_ERROR 22 1.43 +#define VERSION_DOWNGRADE_ERROR 23 1.44 + 1.45 +// Error codes 24-34 are related to the maintenance service 1.46 +// and so are Windows only 1.47 +#define SERVICE_UPDATER_COULD_NOT_BE_STARTED 24 1.48 +#define SERVICE_NOT_ENOUGH_COMMAND_LINE_ARGS 25 1.49 +#define SERVICE_UPDATER_SIGN_ERROR 26 1.50 +#define SERVICE_UPDATER_COMPARE_ERROR 27 1.51 +#define SERVICE_UPDATER_IDENTITY_ERROR 28 1.52 +#define SERVICE_STILL_APPLYING_ON_SUCCESS 29 1.53 +#define SERVICE_STILL_APPLYING_ON_FAILURE 30 1.54 +#define SERVICE_UPDATER_NOT_FIXED_DRIVE 31 1.55 +#define SERVICE_COULD_NOT_LOCK_UPDATER 32 1.56 +#define SERVICE_INSTALLDIR_ERROR 33 1.57 +#define SERVICE_COULD_NOT_COPY_UPDATER 49 1.58 + 1.59 +#define NO_INSTALLDIR_ERROR 34 1.60 +#define WRITE_ERROR_ACCESS_DENIED 35 1.61 +// #define WRITE_ERROR_SHARING_VIOLATION 36 // Replaced with errors 46-48 1.62 +#define WRITE_ERROR_CALLBACK_APP 37 1.63 +#define INVALID_UPDATER_STATUS_CODE 38 1.64 +#define UNEXPECTED_BZIP_ERROR 39 1.65 +#define UNEXPECTED_MAR_ERROR 40 1.66 +#define UNEXPECTED_BSPATCH_ERROR 41 1.67 +#define UNEXPECTED_FILE_OPERATION_ERROR 42 1.68 +#define FILESYSTEM_MOUNT_READWRITE_ERROR 43 1.69 +#define FOTA_GENERAL_ERROR 44 1.70 +#define FOTA_UNKNOWN_ERROR 45 1.71 +#define WRITE_ERROR_SHARING_VIOLATION_SIGNALED 46 1.72 +#define WRITE_ERROR_SHARING_VIOLATION_NOPROCESSFORPID 47 1.73 +#define WRITE_ERROR_SHARING_VIOLATION_NOPID 48 1.74 + 1.75 +// The following error codes are only used by updater.exe 1.76 +// when a fallback key exists and XPCShell tests are being run. 1.77 +#define FALLBACKKEY_UNKNOWN_ERROR 100 1.78 +#define FALLBACKKEY_REGPATH_ERROR 101 1.79 +#define FALLBACKKEY_NOKEY_ERROR 102 1.80 +#define FALLBACKKEY_SERVICE_NO_STOP_ERROR 103 1.81 +#define FALLBACKKEY_LAUNCH_ERROR 104 1.82 + 1.83 +#endif // Errors_h__