java.net.NoRouteToHostException
java.net.SocketException
None
None
New as of JDK 1.1
A NoRouteToHostException is thrown when a socket connection cannot be established with a remote host. This type of exception usually indicates that a firewall is blocking access to the host, or that an intermediate router is down.
public class java.net.NoRouteToHostException extends java.net.SocketException { // Constructors public NoRouteToHostException(); public NoRouteToHostException(String msg); }
This constructor creates a NoRouteToHostException with no associated detail message.
The detail message.
This constructor creates a NoRouteToHostException with the specified detail message.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Throwable |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Exception, IOException, RuntimeException, SocketException