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

cocaine.ServiceInstantiationException Maven / Gradle / Ivy

There is a newer version: 0.11.1.0
Show newest version
package cocaine;

/**
 * @author Anton Bobukh 
 */
public class ServiceInstantiationException extends CocaineException {

    private final Class type;

    public ServiceInstantiationException(Class type, String message) {
        super("Service [" + type.getName() + "] instantiation failed: " + message);
        this.type = type;
    }

    public ServiceInstantiationException(Class type, Throwable throwable) {
        super("Service [" + type.getName() + "] instantiation failed: " + throwable.getMessage(), throwable);
        this.type = type;
    }

    public Class getType() {
        return type;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy