public class InvalidValueException extends CLIException
Constructor and Description |
---|
InvalidValueException(Argument argument,
String value,
Exception cause)
Creates a new instance of
InvalidValueException for the given argument and the given value. |
InvalidValueException(Option option,
String value)
Creates a new instance of
InvalidValueException for the given option and the given value. |
InvalidValueException(Option option,
String value,
Exception cause)
Creates a new instance of
InvalidValueException for the given option and the given value. |
Modifier and Type | Method and Description |
---|---|
Argument |
getArgument() |
Option |
getOption() |
String |
getValue() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidValueException(Option option, String value)
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.option
- the optionvalue
- the valuepublic InvalidValueException(Argument argument, String value, Exception cause)
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.argument
- the argumentvalue
- the valuecause
- the causepublic InvalidValueException(Option option, String value, Exception cause)
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.option
- the optionvalue
- the valuecause
- the causeCopyright © 2022 Eclipse. All rights reserved.