Uses of Class
picocli.CommandLine.ParameterException
-
Packages that use CommandLine.ParameterException Package Description picocli Provides classes and interfaces for the main picocli command line parsing andautocompletion
functionality. -
-
Uses of CommandLine.ParameterException in picocli
Subclasses of CommandLine.ParameterException in picocli Modifier and Type Class Description static class
CommandLine.MaxValuesExceededException
Exception indicating that more values were specified for an option or parameter than itsarity
allows.static class
CommandLine.MissingParameterException
Exception indicating that a required parameter was not specified.static class
CommandLine.MissingTypeConverterException
Exception indicating that an annotated field had a type for which noCommandLine.ITypeConverter
was registered.static class
CommandLine.MutuallyExclusiveArgsException
Exception indicating that the user input included multiple arguments from a mutually exclusive group.static class
CommandLine.OverwrittenOptionException
Exception indicating that an option for a single-value option field has been specified multiple times on the command line.static class
CommandLine.UnmatchedArgumentException
Exception indicating that a command line argument could not be mapped to any of the fields annotated withCommandLine.Option
orCommandLine.Parameters
.Fields in picocli declared as CommandLine.ParameterException Modifier and Type Field Description (package private) CommandLine.ParameterException
CommandLine.ParseResult.GroupValidationResult. exception
Methods in picocli that return CommandLine.ParameterException Modifier and Type Method Description private static CommandLine.ParameterException
CommandLine.ParameterException. create(CommandLine cmd, java.lang.Exception ex, java.lang.String arg, int i, java.lang.String[] args)
private CommandLine.ParameterException
CommandLine.Model.MethodBinding. createParameterException(java.lang.Object value, java.lang.Throwable t)
Methods in picocli with parameters of type CommandLine.ParameterException Modifier and Type Method Description java.util.List<java.lang.Object>
CommandLine.DefaultExceptionHandler. handleException(CommandLine.ParameterException ex, java.io.PrintStream out, CommandLine.Help.Ansi ansi, java.lang.String... args)
Deprecated.java.util.List<java.lang.Object>
CommandLine.IExceptionHandler. handleException(CommandLine.ParameterException ex, java.io.PrintStream out, CommandLine.Help.Ansi ansi, java.lang.String... args)
Deprecated.Handles aParameterException
that occurred while parsing the command line arguments and optionally returns a list of results.R
CommandLine.DefaultExceptionHandler. handleParseException(CommandLine.ParameterException ex, java.lang.String[] args)
Deprecated.Prints the message of the specified exception, followed by the usage message for the command or subcommand whose input was invalid, to the stream returned byCommandLine.AbstractHandler.err()
.R
CommandLine.IExceptionHandler2. handleParseException(CommandLine.ParameterException ex, java.lang.String[] args)
Deprecated.Handles aParameterException
that occurred while parsing the command line arguments and optionally returns a list of results.int
CommandLine.IParameterExceptionHandler. handleParseException(CommandLine.ParameterException ex, java.lang.String[] args)
Handles aParameterException
that occurred while parsing the command line arguments and returns an exit code suitable for returning fromCommandLine.execute(String...)
.(package private) static void
CommandLine.DefaultExceptionHandler. internalHandleParseException(CommandLine.ParameterException ex, java.io.PrintWriter writer, CommandLine.Help.ColorScheme colorScheme)
Deprecated.static boolean
CommandLine.UnmatchedArgumentException. printSuggestions(CommandLine.ParameterException ex, java.io.PrintStream out)
Returnstrue
and prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse
.static boolean
CommandLine.UnmatchedArgumentException. printSuggestions(CommandLine.ParameterException ex, java.io.PrintWriter writer)
Returnstrue
and prints suggested solutions to the specified writer if such solutions exist, otherwise returnsfalse
.Methods in picocli that throw CommandLine.ParameterException Modifier and Type Method Description int
CommandLine.IExecutionStrategy. execute(CommandLine.ParseResult parseResult)
"Executes" the user input and returns an exit code.private java.lang.Object
CommandLine.Interpreter. tryConvert(CommandLine.Model.ArgSpec argSpec, int index, CommandLine.ITypeConverter<?> converter, java.lang.String value, int typeIndex)
Constructors in picocli with parameters of type CommandLine.ParameterException Constructor Description GroupValidationResult(CommandLine.ParseResult.GroupValidationResult.Type type, CommandLine.ParameterException exception)
-