T
- public abstract class BaseValueConverter<T> extends Object implements com.beust.jcommander.IStringConverter<T>
Constructor and Description |
---|
BaseValueConverter(String optionName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getErrorString(String problematicValue,
String targetDesc,
String cause)
Format an error string describing the reason why the conversion failed.
|
String |
getOptionName() |
public BaseValueConverter(String optionName)
optionName
- the name of the option that this converter is used forpublic String getOptionName()
protected String getErrorString(String problematicValue, String targetDesc, String cause)
problematicValue
- the user input that could not be converted to the target typetargetDesc
- description of the desired target typecause
- cause of the failure"--timeout: couldn't convert "abc" to "time duration"
because failed to parse "abc" as integer: NumberFormatException"
Copyright © 2023. All Rights Reserved.