Class HttpUnknownHostException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpUnknownHostException​(java.net.URL url, java.lang.String message, java.lang.Throwable cause)
      Constructs an HttpUnknownHostException with the specified message and cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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

      • HttpUnknownHostException

        public HttpUnknownHostException​(java.net.URL url,
                                        java.lang.String message,
                                        java.lang.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.)