public class SocketConnectException
extends java.io.IOException
ConnectException
,
Serialized FormConstructor 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.
|
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()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"