All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.laamella.parameter_source.ParameterSourceException Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy