LibreOffice Module onlineupdate (master)
1
onlineupdate
source
update
common
errors.h
Go to the documentation of this file.
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
// Error codes that are no longer used should not be used again unless they
13
// aren't used in client code (e.g. nsUpdateService.js, updates.js,
14
// UpdatePrompt.js, etc.).
15
16
#define MAR_ERROR_EMPTY_ACTION_LIST 1
17
#define LOADSOURCE_ERROR_WRONG_SIZE 2
18
19
// Error codes 3-16 are for general update problems.
20
#define USAGE_ERROR 3
21
#define CRC_ERROR 4
22
#define PARSE_ERROR 5
23
#define READ_ERROR 6
24
#define WRITE_ERROR 7
25
// #define UNEXPECTED_ERROR 8 // Replaced with errors 38-42
26
#define ELEVATION_CANCELED 9
27
#define READ_STRINGS_MEM_ERROR 10
28
#define ARCHIVE_READER_MEM_ERROR 11
29
#define BSPATCH_MEM_ERROR 12
30
#define UPDATER_MEM_ERROR 13
31
#define UPDATER_QUOTED_PATH_MEM_ERROR 14
32
#define BAD_ACTION_ERROR 15
33
#define STRING_CONVERSION_ERROR 16
34
35
// Error codes 17-23 are related to security tasks for MAR
36
// signing and MAR protection.
37
#define CERT_LOAD_ERROR 17
38
#define CERT_HANDLING_ERROR 18
39
#define CERT_VERIFY_ERROR 19
40
#define ARCHIVE_NOT_OPEN 20
41
#define COULD_NOT_READ_PRODUCT_INFO_BLOCK_ERROR 21
42
#define MAR_CHANNEL_MISMATCH_ERROR 22
43
#define VERSION_DOWNGRADE_ERROR 23
44
45
// Error codes 24-33 and 49-51 are for the Windows maintenance service.
46
#define SERVICE_UPDATER_COULD_NOT_BE_STARTED 24
47
#define SERVICE_NOT_ENOUGH_COMMAND_LINE_ARGS 25
48
#define SERVICE_UPDATER_SIGN_ERROR 26
49
#define SERVICE_UPDATER_COMPARE_ERROR 27
50
#define SERVICE_UPDATER_IDENTITY_ERROR 28
51
#define SERVICE_STILL_APPLYING_ON_SUCCESS 29
52
#define SERVICE_STILL_APPLYING_ON_FAILURE 30
53
#define SERVICE_UPDATER_NOT_FIXED_DRIVE 31
54
#define SERVICE_COULD_NOT_LOCK_UPDATER 32
55
#define SERVICE_INSTALLDIR_ERROR 33
56
57
#define NO_INSTALLDIR_ERROR 34
58
#define WRITE_ERROR_ACCESS_DENIED 35
59
// #define WRITE_ERROR_SHARING_VIOLATION 36 // Replaced with errors 46-48
60
#define WRITE_ERROR_CALLBACK_APP 37
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 DELETE_ERROR_EXPECTED_DIR 46
67
#define DELETE_ERROR_EXPECTED_FILE 47
68
#define RENAME_ERROR_EXPECTED_FILE 48
69
70
// Error codes 24-33 and 49-51 are for the Windows maintenance service.
71
#define SERVICE_COULD_NOT_COPY_UPDATER 49
72
#define SERVICE_STILL_APPLYING_TERMINATED 50
73
#define SERVICE_STILL_APPLYING_NO_EXIT_CODE 51
74
75
#define WRITE_ERROR_FILE_COPY 61
76
#define WRITE_ERROR_DELETE_FILE 62
77
#define WRITE_ERROR_OPEN_PATCH_FILE 63
78
#define WRITE_ERROR_PATCH_FILE 64
79
#define WRITE_ERROR_APPLY_DIR_PATH 65
80
#define WRITE_ERROR_CALLBACK_PATH 66
81
#define WRITE_ERROR_FILE_ACCESS_DENIED 67
82
#define WRITE_ERROR_DIR_ACCESS_DENIED 68
83
#define WRITE_ERROR_DELETE_BACKUP 69
84
#define WRITE_ERROR_EXTRACT 70
85
86
// Error codes 80 through 99 are reserved for nsUpdateService.js
87
88
// The following error codes are only used by updater.exe
89
// when a fallback key exists for tests.
90
#define FALLBACKKEY_UNKNOWN_ERROR 100
91
#define FALLBACKKEY_REGPATH_ERROR 101
92
#define FALLBACKKEY_NOKEY_ERROR 102
93
#define FALLBACKKEY_SERVICE_NO_STOP_ERROR 103
94
#define FALLBACKKEY_LAUNCH_ERROR 104
95
96
#endif
// Errors_h__
Generated on Sun Jul 30 2023 04:39:37 for LibreOffice Module onlineupdate (master) by
1.9.3