-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExitCode.cs
49 lines (38 loc) · 2.17 KB
/
ExitCode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright Bastian Eicher et al.
// Licensed under the GNU Lesser Public License
using System.Net;
using ZeroInstall.Model;
using ZeroInstall.Store.Implementations;
namespace ZeroInstall.Publish.Cli;
/// <summary>
/// An exit code is returned to the original caller after the application terminates, to indicate success or the reason for failure.
/// </summary>
public enum ExitCode
{
/// <summary>The operation completed without any problems.</summary>
OK = 0,
/// <summary>There was a network problem. This may be intermittent and resolve itself e.g. when a Wi-Fi connection is restored.</summary>
/// <seealso cref="WebException"/>
WebError = 10,
/// <summary>You have insufficient access rights. This can potentially be fixed by running the command as an Administrator/root. It may also indicate misconfigured file permissions.</summary>
/// <seealso cref="UnauthorizedAccessException"/>
AccessDenied = 11,
/// <summary>There was an IO problem. This encompasses issues such as missing files or insufficient disk space.</summary>
/// <seealso cref="IOException"/>
IOError = 12,
/// <summary>A data file could not be parsed. This encompasses issues such as damaged configuration files or malformed XML documents (e.g. feeds).</summary>
/// <seealso cref="InvalidDataException"/>
InvalidData = 25,
/// <summary>The <see cref="ManifestDigest"/> of an implementation does not match the expected value. This could be caused by a damaged download or an incorrect feed.</summary>
/// <seealso cref="DigestMismatchException"/>
DigestMismatch = 26,
/// <summary>The operation could not be completed because a feature that is not (yet) supported was requested. Upgrading to a newer version may resolve this issue.</summary>
/// <seealso cref="NotSupportedException"/>
NotSupported = 50,
/// <summary>The command-line arguments passed to the application were invalid.</summary>
/// <seealso cref="FormatException"/>
InvalidArguments = 99,
/// <summary>The user canceled the task.</summary>
/// <seealso cref="OperationCanceledException"/>
UserCanceled = 100
}