|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #ifndef Errors_h__ |
|
8 #define Errors_h__ |
|
9 |
|
10 #define OK 0 |
|
11 |
|
12 // Old unused error codes: |
|
13 // #define MEM_ERROR 1 // Replaced with errors 10-16 (inclusive) |
|
14 // #define IO_ERROR 2 // Use READ_ERROR or WRITE_ERROR instead |
|
15 |
|
16 // Error codes 3-16 are for general update problems. |
|
17 #define USAGE_ERROR 3 |
|
18 #define CRC_ERROR 4 |
|
19 #define PARSE_ERROR 5 |
|
20 #define READ_ERROR 6 |
|
21 #define WRITE_ERROR 7 |
|
22 // #define UNEXPECTED_ERROR 8 // Replaced with errors 38-42 |
|
23 #define ELEVATION_CANCELED 9 |
|
24 #define READ_STRINGS_MEM_ERROR 10 |
|
25 #define ARCHIVE_READER_MEM_ERROR 11 |
|
26 #define BSPATCH_MEM_ERROR 12 |
|
27 #define UPDATER_MEM_ERROR 13 |
|
28 #define UPDATER_QUOTED_PATH_MEM_ERROR 14 |
|
29 #define BAD_ACTION_ERROR 15 |
|
30 #define STRING_CONVERSION_ERROR 16 |
|
31 |
|
32 // Error codes 17-23 are related to security tasks for MAR |
|
33 // signing and MAR protection. |
|
34 #define CERT_LOAD_ERROR 17 |
|
35 #define CERT_HANDLING_ERROR 18 |
|
36 #define CERT_VERIFY_ERROR 19 |
|
37 #define ARCHIVE_NOT_OPEN 20 |
|
38 #define COULD_NOT_READ_PRODUCT_INFO_BLOCK_ERROR 21 |
|
39 #define MAR_CHANNEL_MISMATCH_ERROR 22 |
|
40 #define VERSION_DOWNGRADE_ERROR 23 |
|
41 |
|
42 // Error codes 24-34 are related to the maintenance service |
|
43 // and so are Windows only |
|
44 #define SERVICE_UPDATER_COULD_NOT_BE_STARTED 24 |
|
45 #define SERVICE_NOT_ENOUGH_COMMAND_LINE_ARGS 25 |
|
46 #define SERVICE_UPDATER_SIGN_ERROR 26 |
|
47 #define SERVICE_UPDATER_COMPARE_ERROR 27 |
|
48 #define SERVICE_UPDATER_IDENTITY_ERROR 28 |
|
49 #define SERVICE_STILL_APPLYING_ON_SUCCESS 29 |
|
50 #define SERVICE_STILL_APPLYING_ON_FAILURE 30 |
|
51 #define SERVICE_UPDATER_NOT_FIXED_DRIVE 31 |
|
52 #define SERVICE_COULD_NOT_LOCK_UPDATER 32 |
|
53 #define SERVICE_INSTALLDIR_ERROR 33 |
|
54 #define SERVICE_COULD_NOT_COPY_UPDATER 49 |
|
55 |
|
56 #define NO_INSTALLDIR_ERROR 34 |
|
57 #define WRITE_ERROR_ACCESS_DENIED 35 |
|
58 // #define WRITE_ERROR_SHARING_VIOLATION 36 // Replaced with errors 46-48 |
|
59 #define WRITE_ERROR_CALLBACK_APP 37 |
|
60 #define INVALID_UPDATER_STATUS_CODE 38 |
|
61 #define UNEXPECTED_BZIP_ERROR 39 |
|
62 #define UNEXPECTED_MAR_ERROR 40 |
|
63 #define UNEXPECTED_BSPATCH_ERROR 41 |
|
64 #define UNEXPECTED_FILE_OPERATION_ERROR 42 |
|
65 #define FILESYSTEM_MOUNT_READWRITE_ERROR 43 |
|
66 #define FOTA_GENERAL_ERROR 44 |
|
67 #define FOTA_UNKNOWN_ERROR 45 |
|
68 #define WRITE_ERROR_SHARING_VIOLATION_SIGNALED 46 |
|
69 #define WRITE_ERROR_SHARING_VIOLATION_NOPROCESSFORPID 47 |
|
70 #define WRITE_ERROR_SHARING_VIOLATION_NOPID 48 |
|
71 |
|
72 // The following error codes are only used by updater.exe |
|
73 // when a fallback key exists and XPCShell tests are being run. |
|
74 #define FALLBACKKEY_UNKNOWN_ERROR 100 |
|
75 #define FALLBACKKEY_REGPATH_ERROR 101 |
|
76 #define FALLBACKKEY_NOKEY_ERROR 102 |
|
77 #define FALLBACKKEY_SERVICE_NO_STOP_ERROR 103 |
|
78 #define FALLBACKKEY_LAUNCH_ERROR 104 |
|
79 |
|
80 #endif // Errors_h__ |