-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved ExitCode from ZeroInstall.Publish to ZeroInstall.Publish.Cli
- Loading branch information
1 parent
4079b46
commit 9004365
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters