Package org.apache.http.conn
Class HttpHostConnectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.net.SocketException
-
- java.net.ConnectException
-
- org.apache.http.conn.HttpHostConnectException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpHostConnectException extends java.net.ConnectException
AConnectException
that specifies theHttpHost
that was being connected to.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpHostConnectException(java.io.IOException cause, HttpHost host, java.net.InetAddress... remoteAddresses)
Creates a HttpHostConnectException based on originalIOException
.HttpHostConnectException(HttpHost host, java.net.ConnectException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHost
getHost()
-
-
-
Constructor Detail
-
HttpHostConnectException
@Deprecated public HttpHostConnectException(HttpHost host, java.net.ConnectException cause)
-
HttpHostConnectException
public HttpHostConnectException(java.io.IOException cause, HttpHost host, java.net.InetAddress... remoteAddresses)
Creates a HttpHostConnectException based on originalIOException
.- Since:
- 4.3
-
-
Method Detail
-
getHost
public HttpHost getHost()
-
-