home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Java Fundamental Classes Reference

Previous Chapter 15
The java.net Package
Next
 

NoRouteToHostException

Name

NoRouteToHostException

Synopsis

Class Name:

java.net.NoRouteToHostException

Superclass:

java.net.SocketException

Immediate Subclasses:

None

Interfaces Implemented:

None

Availability:

New as of JDK 1.1

Description

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.

Class Summary

public class java.net.NoRouteToHostException 
             extends java.net.SocketException {
  // Constructors
  public NoRouteToHostException();
  public NoRouteToHostException(String msg);
}

Constructors

NoRouteToHostException

public NoRouteToHostException()

Description

This constructor creates a NoRouteToHostException with no associated detail message.

public NoRouteToHostException(String msg)

Parameters

msg

The detail message.

Description

This constructor creates a NoRouteToHostException with the specified detail message.

Inherited Methods

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

   

See Also

Exception, IOException, RuntimeException, SocketException


Previous Home Next
MulticastSocket Book Index ProtocolException

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java