Class ConnectTimeoutException

All Implemented Interfaces:
Serializable

public class ConnectTimeoutException extends SocketTimeoutException
A timeout while connecting to an HTTP server or waiting for an available connection from a connection manager.
Since:
4.0
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • namedEndpoint

      private final org.apache.hc.core5.net.NamedEndpoint namedEndpoint
  • Constructor Details

    • ConnectTimeoutException

      public ConnectTimeoutException(String message)
      Creates a ConnectTimeoutException with the specified detail message.
      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
    • ConnectTimeoutException

      public ConnectTimeoutException(String message, org.apache.hc.core5.net.NamedEndpoint namedEndpoint)
  • Method Details

    • getHost

      public org.apache.hc.core5.net.NamedEndpoint getHost()
      Gets the named endpoint.
      Returns:
      the named endpoint, may be null.
      Since:
      5.0