com.opsbears.webcomponents.configuration.ConfigurationOptionInvalidValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configuration Show documentation
Show all versions of configuration Show documentation
Utilities for creating and reading configuration options
package com.opsbears.webcomponents.configuration;
import com.opsbears.webcomponents.typeconverter.TypeConversionFailedException;
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
public class ConfigurationOptionInvalidValue extends RuntimeException {
private final String name;
private final String expected;
public ConfigurationOptionInvalidValue(
String name,
String expected,
Object value,
TypeConversionFailedException e
) {
super("Invalid value for configuration option " + name + ", expected: " + expected + ", got: " + value.toString(), e);
this.name = name;
this.expected = expected;
}
public String getName() {
return name;
}
public String getExpected() {
return expected;
}
}