Top Description Fields Constructors Methods
io.vertx.core.cli

public Class MissingValueException

extends CLIException
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
private final Argument
private final Option

Constructor Summary

AccessConstructor and Description
public
MissingValueException(Option
the option
option
)

Creates a new instance of MissingValueException when an option requiring a value does not receive a value.

public
MissingValueException(Argument
the argument
argument
)

Creates a new instance of MissingValueException when a mandatory argument is not set in the user command line.

Method Summary

Modifier and TypeMethod and Description
public Argument

Returns:

the argument, may be null if the exception is about an option.
getArgument
()

public Option

Returns:

the option, may be null if the exception is about an argument.
getOption
()

Field Detail

argumentback to summary
private final Argument argument
optionback to summary
private final Option option

Constructor Detail

MissingValueExceptionback to summary
public MissingValueException(Option option)

Creates a new instance of MissingValueException when an option requiring a value does not receive a value.

Parameters
option:Option

the option

MissingValueExceptionback to summary
public MissingValueException(Argument argument)

Creates a new instance of MissingValueException when a mandatory argument is not set in the user command line.

Parameters
argument:Argument

the argument

Method Detail

getArgumentback to summary
public Argument getArgument()
Returns:Argument

the argument, may be null if the exception is about an option.

getOptionback to summary
public Option getOption()
Returns:Option

the option, may be null if the exception is about an argument.