vertx / io.vertx.core.cli / InvalidValueException

InvalidValueException

open class InvalidValueException : CLIException

Exception thrown when an option or an argument receives an invalid value.

Author
Clement Escoffier

Constructors

<init>

InvalidValueException(option: Option, value: String)

Creates a new instance of InvalidValueException for the given option and the given value. This constructor is used when the option receives a value while it does not accept another value.

InvalidValueException(argument: Argument, value: String, cause: Exception)

Creates a new instance of InvalidValueException for the given argument and the given value. This constructor is used when the argument receives a value that cannot be "converted" to the desired type.

InvalidValueException(option: Option, value: String, cause: Exception)

Creates a new instance of InvalidValueException for the given option and the given value. This constructor is used when the options receives a value that cannot be "converted" to the desired type.

Functions

getArgument

open fun getArgument(): Argument

getOption

open fun getOption(): Option

getValue

open fun getValue(): String