java.net
Class UnknownHostException

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

public class UnknownHostException
extends 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.

See Also:
Serialized Form

Constructor Summary
UnknownHostException()
          Create a new instance without a descriptive error message.
UnknownHostException(String message)
          Create a new instance with a descriptive error message, such as the name of the host that could not be resolved.
 
Method Summary
 
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
 

Constructor Detail

UnknownHostException

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


UnknownHostException

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

Parameters:
message - a message describing the error that occurred