Package org.apache.hc.client5.http
Class HttpHostConnectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
java.net.ConnectException
org.apache.hc.client5.http.HttpHostConnectException
- All Implemented Interfaces:
Serializable
A
ConnectException
that specifies the NamedEndpoint
that was being connected to.- Since:
- 4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hc.core5.net.NamedEndpoint
private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionHttpHostConnectException
(String message) Creates a HttpHostConnectException with the specified detail message.HttpHostConnectException
(String message, org.apache.hc.core5.net.NamedEndpoint namedEndpoint) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
namedEndpoint
private final org.apache.hc.core5.net.NamedEndpoint namedEndpoint
-
-
Constructor Details
-
HttpHostConnectException
Creates a HttpHostConnectException with the specified detail message. -
HttpHostConnectException
public HttpHostConnectException(String message, org.apache.hc.core5.net.NamedEndpoint namedEndpoint)
-
-
Method Details
-
getHost
public org.apache.hc.core5.net.NamedEndpoint getHost()- Since:
- 5.0
-