Class HttpUnknownHostException

All Implemented Interfaces:
Serializable

public class HttpUnknownHostException extends HttpConnectException
Thrown when there was communication error between the client and server because the host specified in the URL cannot be reached.
Since:
1.7
See Also:
  • Constructor Details

    • HttpUnknownHostException

      public HttpUnknownHostException(URL url, String message, Throwable cause)
      Constructs an HttpUnknownHostException with the specified message and cause.
      Parameters:
      url - the URL used during the connection failure
      message - the detail message (which is saved for later retrieval by the AbstractRuntimeException.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)