Package java.net
Class NoRouteToHostException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
java.net.NoRouteToHostException
- All Implemented Interfaces:
Serializable
public class NoRouteToHostException extends SocketException
The
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.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor 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. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoRouteToHostException
public NoRouteToHostException()Constructs a new instance. -
NoRouteToHostException
Constructs a new instance with the given detail message. -
NoRouteToHostException
Constructs a new instance with given detail message and cause.
-