Class MissingValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertx.core.cli.CLIException
io.vertx.core.cli.MissingValueException
- All Implemented Interfaces:
Serializable
Exception thrown when an option requiring a value does not receive the value, or when a mandatory argument does not
receive a value.
- Author:
- Clement Escoffier invalid input: '<'[email protected]>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingValueException(Argument argument) Creates a new instance ofMissingValueExceptionwhen a mandatory argument is not set in the user command line.MissingValueException(Option option) Creates a new instance ofMissingValueExceptionwhen an option requiring a value does not receive a value. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingValueException
Creates a new instance ofMissingValueExceptionwhen an option requiring a value does not receive a value.- Parameters:
option- the option
-
MissingValueException
Creates a new instance ofMissingValueExceptionwhen a mandatory argument is not set in the user command line.- Parameters:
argument- the argument
-
-
Method Details
-
getOption
- Returns:
- the option, may be
nullif the exception is about an argument.
-
getArgument
- Returns:
- the argument, may be
nullif the exception is about an option.
-