- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- picocli.CommandLine.PicocliException
- 
- picocli.CommandLine.ParameterException
- 
- picocli.CommandLine.UnmatchedArgumentException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Enclosing class:
- CommandLine
 
 public static class CommandLine.UnmatchedArgumentException extends CommandLine.ParameterException Exception indicating that a command line argument could not be mapped to any of the fields annotated withCommandLine.OptionorCommandLine.Parameters.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class picocli.CommandLine.ParameterExceptioncommandLine
 
- 
 - 
Constructor SummaryConstructors Constructor Description UnmatchedArgumentException(CommandLine commandLine, String msg)UnmatchedArgumentException(CommandLine commandLine, List<String> args)UnmatchedArgumentException(CommandLine commandLine, List<String> args, String extraMsg)UnmatchedArgumentException(CommandLine commandLine, Stack<String> args)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getSuggestions()Returns suggested solutions if such solutions exist, otherwise returns an empty list.List<String>getUnmatched()Returns the unmatched command line arguments.booleanisUnknownOption()Returnstrueif the first unmatched command line arguments resembles an option,falseotherwise.booleanprintSuggestions(PrintStream out)Returnstrueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse.booleanprintSuggestions(PrintWriter writer)Returnstrueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse.static booleanprintSuggestions(CommandLine.ParameterException ex, PrintStream out)Returnstrueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse.static booleanprintSuggestions(CommandLine.ParameterException ex, PrintWriter writer)Returnstrueand prints suggested solutions to the specified writer if such solutions exist, otherwise returnsfalse.- 
Methods inherited from class picocli.CommandLine.ParameterExceptiongetArgSpec, getCommandLine, getValue
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
UnmatchedArgumentExceptionpublic UnmatchedArgumentException(CommandLine commandLine, String msg) 
 - 
UnmatchedArgumentExceptionpublic UnmatchedArgumentException(CommandLine commandLine, Stack<String> args) 
 - 
UnmatchedArgumentExceptionpublic UnmatchedArgumentException(CommandLine commandLine, List<String> args) 
 - 
UnmatchedArgumentExceptionpublic UnmatchedArgumentException(CommandLine commandLine, List<String> args, String extraMsg) 
 
- 
 - 
Method Detail- 
printSuggestionspublic static boolean printSuggestions(CommandLine.ParameterException ex, PrintStream out) Returnstrueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse.- Since:
- 3.3.0
 
 - 
printSuggestionspublic static boolean printSuggestions(CommandLine.ParameterException ex, PrintWriter writer) Returnstrueand prints suggested solutions to the specified writer if such solutions exist, otherwise returnsfalse.- Since:
- 4.0
 
 - 
getUnmatchedpublic List<String> getUnmatched() Returns the unmatched command line arguments.- Since:
- 3.3.0
 
 - 
isUnknownOptionpublic boolean isUnknownOption() Returnstrueif the first unmatched command line arguments resembles an option,falseotherwise.- Since:
- 3.3.0
 
 - 
printSuggestionspublic boolean printSuggestions(PrintStream out) Returnstrueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse.- Since:
- 3.3.0
 
 - 
printSuggestionspublic boolean printSuggestions(PrintWriter writer) Returnstrueand prints suggested solutions to the specified stream if such solutions exist, otherwise returnsfalse.- Since:
- 4.0
 
 
- 
 
-