using AWS.Deploy.Common;
namespace AWS.Deploy.CLI
{
///
/// Standardized cli return codes for Commands.
///
public class CommandReturnCodes
{
///
/// Command completed and honored user's intention.
///
public const int SUCCESS = 0;
///
/// A command could not finish its work because an unexpected
/// exception was thrown. This usually means there is an intermittent io problem
/// or bug in the code base.
///
/// Unexpected exceptions are any exception that do not inherit from
///
///
public const int UNHANDLED_EXCEPTION = -1;
///
/// A command could not finish of an expected problem like a user
/// configuration or system configuration problem. For example, a required
/// dependency like Docker is not installed.
///
/// Expected problems are usually indicated by throwing an exception that
/// inherits from
///
public const int USER_ERROR = 1;
///
/// A command could not finish because of a problem
/// using a TCP port that is already in use.
///
public const int TCP_PORT_ERROR = -100;
}
}