net.lenni0451.mcping.exception.ConnectTimeoutException 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 java.io.IOException;
public class ConnectTimeoutException extends IOException {
private final int connectionTimeout;
public ConnectTimeoutException(final int connectionTimeout) {
super("Connect timed out (> " + connectionTimeout + " ms)");
this.connectionTimeout = connectionTimeout;
}
public int getConnectionTimeout() {
return this.connectionTimeout;
}
}