java.net.ConnectException
| Modifier and Type | Field and Description |
|---|---|
| private int | cto
The connection timeout. |
| private String | host
The socket host name. |
| private int | port
The socket port. |
| private static final long | serialVersionUID
The generated serial id.
|
| Access | Constructor and Description |
|---|---|
| public | SocketConnectException(String
error message detail msg, Exception the underlying exception that indicates the failure cause, String the host we were trying to connect to host, int the port we were trying to connect to port, int the timeout for the connection attempt cto)Constructs a SocketConnectException. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Exception | |
| public String | |
| public int |
| cto | back to summary |
|---|---|
| private int cto The connection timeout. | |
| host | back to summary |
|---|---|
| private String host The socket host name. | |
| port | back to summary |
|---|---|
| private int port The socket port. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. The generated serial id. | |
| SocketConnectException | back to summary |
|---|---|
| public SocketConnectException(String msg, Exception cause, String host, int port, int cto) Constructs a SocketConnectException. | |
| getConnectionTimeout | back to summary |
|---|---|
| public int getConnectionTimeout() The timeout used for the connection attempt.
| |
| getException | back to summary |
|---|---|
| public Exception getException() The exception that caused the failure.
| |
| getHost | back to summary |
|---|---|
| public String getHost() The host we were trying to connect to.
| |
| getPort | back to summary |
|---|---|
| public int getPort() The port we were trying to connect to.
| |