Class CommandLine.ParameterException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandLine.MaxValuesforFieldExceededException, CommandLine.MissingParameterException, CommandLine.MissingTypeConverterException, CommandLine.OverwrittenOptionException, CommandLine.UnmatchedArgumentException
Enclosing class:
CommandLine

public static class CommandLine.ParameterException extends CommandLine.PicocliException
Exception indicating something went wrong while parsing command line options.
See Also:
  • Field Details

  • Constructor Details

    • ParameterException

      public ParameterException(CommandLine commandLine, String msg)
      Constructs a new ParameterException with the specified CommandLine and error message.
      Parameters:
      commandLine - the command or subcommand whose input was invalid
      msg - describes the problem
      Since:
      2.0
    • ParameterException

      public ParameterException(CommandLine commandLine, String msg, Exception ex)
      Constructs a new ParameterException with the specified CommandLine and error message.
      Parameters:
      commandLine - the command or subcommand whose input was invalid
      msg - describes the problem
      ex - the exception that caused this ParameterException
      Since:
      2.0
  • Method Details