public class ConnectException extends SocketException
ConnectException
is thrown if a connection cannot be established to
a remote host on a specific port.
Most applications should not catch this exception; it is
more robust to catch the superclass SocketException
.
Constructor and Description |
---|
ConnectException()
Constructs a new instance.
|
ConnectException(String detailMessage)
Constructs a new instance with the given detail message.
|
ConnectException(String detailMessage,
Throwable cause)
Constructs a new instance with the given detail message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConnectException()
public ConnectException(String detailMessage)