Class HttpConnectException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpUnknownHostException

public class HttpConnectException extends AbstractRuntimeException
Thrown when there was communication error between the client and server.
Since:
1.7
See Also:
  • Constructor Details

    • HttpConnectException

      public HttpConnectException(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.)
  • Method Details

    • getUrl

      public URL getUrl()
      Return the URL used during the connection failure.
      Returns:
      the URL causing the connection failure.