
com.opsbears.webcomponents.configuration.ConfigurationOptionInvalidValue Maven / Gradle / Ivy
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy