Class UnrecognizedOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.cli.ParseException
org.apache.commons.cli.UnrecognizedOptionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AmbiguousOptionException
Thrown during parsing signaling an unrecognized option.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnrecognizedOptionException(String message) Constructs a newUnrecognizedArgumentExceptionwith the specified detail message.UnrecognizedOptionException(String message, String option) Constructs a newUnrecognizedArgumentExceptionwith the specified option and detail message. -
Method Summary
Methods inherited from class ParseException
wrapMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnrecognizedOptionException
Constructs a newUnrecognizedArgumentExceptionwith the specified detail message.- Parameters:
message- the detail message.
-
UnrecognizedOptionException
Constructs a newUnrecognizedArgumentExceptionwith the specified option and detail message.- Parameters:
message- the detail message.option- the unrecognized option.- Since:
- 1.2
-
-
Method Details
-
getOption
-