Package nz.org.riskscape.picocli
Class CommandLine.OverwrittenOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.picocli.CommandLine.PicocliException
nz.org.riskscape.picocli.CommandLine.ParameterException
nz.org.riskscape.picocli.CommandLine.OverwrittenOptionException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CommandLine
Exception indicating that an option for a single-value option field has been specified multiple times on the command line.
- See Also:
-
Constructor Summary
ConstructorDescriptionOverwrittenOptionException
(CommandLine commandLine, CommandLine.Model.ArgSpec overwritten, String msg) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCommandLine.Model.ArgSpec
for the option which was being overwritten.Methods inherited from class nz.org.riskscape.picocli.CommandLine.ParameterException
getArgSpec, getCommandLine, getValue
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OverwrittenOptionException
public OverwrittenOptionException(CommandLine commandLine, CommandLine.Model.ArgSpec overwritten, String msg)
-
-
Method Details
-
getOverwritten
Returns theCommandLine.Model.ArgSpec
for the option which was being overwritten.- Since:
- 3.8
-