[Chapter 28] 28.13 java.net.NoRouteToHostException (JDK 1.1)
Author: David Flanagan
Date: Thu Jul 31 16:31:10 1997

#

| Chapter 28 The java.net Package |

## 28.13 java.net.NoRouteToHostException (JDK 1.1)

###

This exception signals that a socket could not be connected to a remote host, because the host could not be contacted. Typically this means that some link in the network between the local machine and the remote host is down, or that the host is behind a firewall.

    public class NoRouteToHostException extends SocketException {
        // Public Constructors
                public NoRouteToHostException(String msg);
                public NoRouteToHostException();
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->IOException->SocketException->NoRouteToHostException

java.net.MulticastSocket (JDK 1.1) |  | java.net.ProtocolException (JDK 1.0)