public class SocketConnectException extends IOException
ConnectException, 
Serialized Form| Constructor and Description | 
|---|
| SocketConnectException(String msg,
                      Exception cause,
                      String host,
                      int port,
                      int cto)Constructs a SocketConnectException. | 
| Modifier and Type | Method and 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. | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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 JBoss by Red Hat. All rights reserved.