Package java.net

Class 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