namespace OpenTap.Cli
{
///
/// ExitCodes reserved by OpenTAP. Uses range 192 to 255. OpenTAP Plugins should use positive numbers between 1 and 191 for custom error codes.
/// For best cross platform compatibility all exitcodes should be positive and between 0 and 255.
///
public enum ExitCodes
{
///
/// CLI action completed successfully
///
[Display("Success", "Action completed successfully")]
Success = 0,
///
/// User cancelled CLI action
///
[Display("User Cancelled", "Action cancelled by user")]
UserCancelled = 192,
///
/// CLI action threw an unhandled exception
///
[Display("General Error", "An unhandled exception occurred")]
GeneralException = 193,
///
/// No CLI action found matching commands
///
[Display("Unknown Action", "Found no CLI action matching command")]
UnknownCliAction = 194,
///
/// CLI action missing a license
///
[Display("LicenseError", "A required license is missing")]
LicenseError = 195,
///
/// Unable to parse one or more arguments
///
[Display("Argument Parse Error", "Unable to parse one or more arguments")]
ArgumentParseError = 196,
///
/// One or more arguments is incorrect
///
[Display("Argument Error", "One or more arguments are incorrect")]
ArgumentError = 197,
///
/// Network error occurred
///
[Display("Network Error", "A network error occurred")]
NetworkError = 198,
///
/// Package resolution Error
///
[Display("Package Resolution Error", "A package configuration was not able to be resolved.")]
PackageResolutionError = 199,
}
}