Serializable
public class SocketConnectException extends IOException
ConnectException
,
Serialized FormConstructor | Description |
---|---|
SocketConnectException(String msg,
Exception cause,
String host,
int port,
int cto) |
Constructs a SocketConnectException.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getConnectionTimeout() |
The timeout used for the connection attempt.
|
Exception |
getException() |
The exception that caused the failure.
|
String |
getHost() |
The host we were trying to connect to.
|
int |
getPort() |
The port we were trying to connect to.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SocketConnectException(String msg, Exception cause, 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 Exception getException()
public String getHost()
public int getPort()
public int getConnectionTimeout()
Copyright © 2018 Oracle. All rights reserved.