Class UnrecognizedOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.aspectran.shell.command.option.OptionParserException
com.aspectran.shell.command.option.UnrecognizedOptionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AmbiguousOptionException
Exception thrown during parsing signalling an unrecognized
option was seen.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnrecognizedOptionException
(String message) Construct a newUnrecognizedArgumentException
with the specified detail message.UnrecognizedOptionException
(String message, String option) Construct a newUnrecognizedArgumentException
with the specified option and detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnrecognizedOptionException
Construct a newUnrecognizedArgumentException
with the specified detail message.- Parameters:
message
- the detail message
-
UnrecognizedOptionException
Construct a newUnrecognizedArgumentException
with the specified option and detail message.- Parameters:
message
- the detail messageoption
- the unrecognized option
-
-
Method Details
-
getOption
Returns the unrecognized option.- Returns:
- the related option
-