Class MissingOptionValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.aspectran.shell.command.option.OptionParserException
com.aspectran.shell.command.option.MissingOptionValueException
- All Implemented Interfaces:
Serializable
Thrown when an option requiring a value is not provided with a value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingOptionValueException
(Option option) Construct a newMissingOptionValueException
with the specified detail message.MissingOptionValueException
(String message) Construct a newMissingOptionValueException
with the specified 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
-
MissingOptionValueException
Construct a newMissingOptionValueException
with the specified detail message.- Parameters:
message
- the detail message
-
MissingOptionValueException
Construct a newMissingOptionValueException
with the specified detail message.- Parameters:
option
- the option requiring an argument
-
-
Method Details
-
getOption
Return the option requiring a value that wasn't provided on the command line.- Returns:
- the related option
-