java.net
Class ConnectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
java.net.ConnectException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- HttpHostConnectException
public class ConnectException
- extends SocketException
This ConnectException is thrown when a connection cannot be established to a
remote host/port, because for instance a server was not listening.
- See Also:
- Serialized Form
|
Constructor Summary |
ConnectException()
Constructs a new instance of this class with its walkback filled in. |
ConnectException(String detailMessage)
Constructs a new instance of this class with its walkback and message
filled in. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ConnectException
public ConnectException()
- Constructs a new instance of this class with its walkback filled in.
ConnectException
public ConnectException(String detailMessage)
- Constructs a new instance of this class with its walkback and message
filled in.
- Parameters:
detailMessage - String The detail message for the exception.
Please submit a feedback, bug or feature