namespace BytecodeApi.CommandLineParser;
///
/// The exception that is thrown when commandline parsing failed or was asserted using the object.
///
public sealed class CommandLineParserException : Exception
{
///
/// Gets a value that indicates what validation took place using the object. For general exceptions, is returned.
///
public CommandLineParserError Error { get; }
///
/// Initializes a new instance of the class.
///
/// The message that describes the error.
public CommandLineParserException(string? message) : this(CommandLineParserError.None, message)
{
}
///
/// Initializes a new instance of the class.
///
/// If validated using the object, indicates what validation took place.
/// The message that describes the error.
public CommandLineParserException(CommandLineParserError error, string? message) : base(message)
{
Error = error;
}
}