public class SocketConnectException
extends java.io.IOException
ConnectException
,
Serialized FormModifier and Type | Field and Description |
---|---|
private int |
cto
The connection timeout.
|
private java.lang.String |
host
The socket host name.
|
private int |
port
The socket port.
|
private static long |
serialVersionUID
The generated serial id.
|
Constructor and Description |
---|
SocketConnectException(java.lang.String msg,
java.lang.Exception cause,
java.lang.String host,
int port,
int cto)
Constructs a SocketConnectException.
|
Modifier and Type | Method and Description |
---|---|
int |
getConnectionTimeout()
The timeout used for the connection attempt.
|
java.lang.Exception |
getException()
The exception that caused the failure.
|
java.lang.String |
getHost()
The host we were trying to connect to.
|
int |
getPort()
The port we were trying to connect to.
|
private java.lang.String host
private int port
private int cto
private static final long serialVersionUID
public SocketConnectException(java.lang.String msg, java.lang.Exception cause, java.lang.String host, int port, int cto)
msg
- error message detailcause
- the underlying exception that indicates the failurehost
- the host we were trying to connect toport
- the port we were trying to connect tocto
- the timeout for the connection attemptpublic java.lang.Exception getException()
public java.lang.String getHost()
public int getPort()
public int getConnectionTimeout()