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

cz.jalasoft.lifeconfig.converterprovider.ConverterNotFoundException Maven / Gradle / Ivy

package cz.jalasoft.lifeconfig.converterprovider;

/**
 * @author Honza Lastovicka ([email protected])
 * @since 2016-09-15.
 */
public final class ConverterNotFoundException extends Exception {

    private final Class sourceType;
    private final Class targetType;

    public ConverterNotFoundException(Class sourceType, Class targetType) {
        this.sourceType = sourceType;
        this.targetType = targetType;
    }

    @Override
    public String getMessage() {
        return "No converter from " + sourceType + " to " + targetType + " has been found.";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy