Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Class UnknownHostException  view UnknownHostException download UnknownHostException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.net.UnknownHostException
All Implemented Interfaces:
java.io.Serializable

public class UnknownHostException
extends java.io.IOException

This exception indicates that an attempt was made to reference a hostname or IP address that is not valid. This could possibly indicate that a DNS problem has occurred, but most often means that the host was not correctly specified.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private static long serialVersionUID
          Compatible with JDK 1.0+.
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
UnknownHostException()
          Create a new instance without a descriptive error message.
UnknownHostException(java.lang.String message)
          Create a new instance with a descriptive error message, such as the name of the host that could not be resolved.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Compatible with JDK 1.0+.

See Also:
Constant Field Values
Constructor Detail

UnknownHostException

public UnknownHostException()
Create a new instance without a descriptive error message.


UnknownHostException

public UnknownHostException(java.lang.String message)
Create a new instance with a descriptive error message, such as the name of the host that could not be resolved.