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

cocaine.LocatorResolveException Maven / Gradle / Ivy

There is a newer version: 0.11.1.0
Show newest version
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