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:
java.io.Serializable
public class HttpHostConnectException extends java.net.ConnectException
AConnectException
that specifies theNamedEndpoint
that was being connected to.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.hc.core5.net.NamedEndpoint
namedEndpoint
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description HttpHostConnectException(java.lang.String message)
Creates a HttpHostConnectException with the specified detail message.HttpHostConnectException(java.lang.String message, org.apache.hc.core5.net.NamedEndpoint namedEndpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.core5.net.NamedEndpoint
getHost()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
namedEndpoint
private final org.apache.hc.core5.net.NamedEndpoint namedEndpoint
-
-
Constructor Detail
-
HttpHostConnectException
public HttpHostConnectException(java.lang.String message)
Creates a HttpHostConnectException with the specified detail message.
-
HttpHostConnectException
public HttpHostConnectException(java.lang.String message, org.apache.hc.core5.net.NamedEndpoint namedEndpoint)
-
-