Class CommandLine.ParameterException

    • Constructor Detail

      • 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 Detail

      • getCommandLine

        public CommandLine getCommandLine()
        Returns the CommandLine object for the (sub)command whose input could not be parsed.
        Returns:
        the CommandLine object for the (sub)command where parsing failed.
        Since:
        2.0