Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.net

Class UnknownHostException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.io.IOException
         |
         +--java.net.UnknownHostException


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.

Authors:

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.

Constructor Details

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.

Parameters: