public class NoRouteToHostException extends SocketException
NoRouteToHostException will be thrown while attempting to connect
to a remote host but the host cannot be reached for instance because of a
badly configured router or a blocking firewall.
Most applications should not catch this exception; it is
more robust to catch the superclass SocketException.
| Constructor and Description |
|---|
NoRouteToHostException()
Constructs a new instance.
|
NoRouteToHostException(String detailMessage)
Constructs a new instance with the given detail message.
|
NoRouteToHostException(String detailMessage,
Throwable cause)
Constructs a new instance with given detail message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoRouteToHostException()
public NoRouteToHostException(String detailMessage)