
cocaine.ServiceInstantiationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cocaine-core Show documentation
Show all versions of cocaine-core Show documentation
Core classes for Cocaine Application Engine.
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