
com.laamella.parameter_source.ParameterSourceException Maven / Gradle / Ivy
package com.laamella.parameter_source;
import java.util.function.Supplier;
public class ParameterSourceException extends RuntimeException {
ParameterSourceException(String message, Object... args) {
super(String.format(message, args));
}
public ParameterSourceException(Throwable cause, String message, Object... args) {
super(String.format(message, args), cause);
}
public static Supplier missingKeyException(String key) {
return () -> new ParameterSourceException("Key %s is missing.", key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy