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

net.lenni0451.mcping.exception.ConnectionRefusedException Maven / Gradle / Ivy

The newest version!
package net.lenni0451.mcping.exception;

import net.lenni0451.mcping.ServerAddress;

import java.io.IOException;

public class ConnectionRefusedException extends IOException {

    private final ServerAddress serverAddress;

    public ConnectionRefusedException(final ServerAddress serverAddress) {
        super("Connection to " + serverAddress.getHost() + ":" + serverAddress.getPort() + " was refused");
        this.serverAddress = serverAddress;
    }

    public ServerAddress getServerAddress() {
        return this.serverAddress;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy