net.lenni0451.mcping.exception.ConnectionRefusedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MCPing Show documentation
Show all versions of MCPing Show documentation
A simple library to ping minecraft servers
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;
}
}