vertx / io.vertx.core.cli / InvalidValueException / <init>

# <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.

### Parameters

`option` - the option

`value` - the 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.

### Parameters

`argument` - the argument

`value` - the value

`cause` - the cause

`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.

### Parameters

`option` - the option

`value` - the value

`cause` - the cause