
cocaine.LocatorResolveException 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;
import java.net.SocketAddress;
/**
* @author Anton Bobukh
*/
public class LocatorResolveException extends CocaineException {
private final String serviceName;
private final SocketAddress endpoint;
private final String reason;
public LocatorResolveException(String serviceName, SocketAddress endpoint, Throwable reason) {
super(serviceName + " - " + endpoint + " - " + reason.getLocalizedMessage(), reason);
this.serviceName = serviceName;
this.endpoint = endpoint;
this.reason = reason.getLocalizedMessage();
}
public String getServiceName() {
return serviceName;
}
public SocketAddress getEndpoint() {
return endpoint;
}
public String getReason() {
return reason;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy