java.net.ConnectException
java.net.SocketException
None
None
New as of JDK 1.1
A ConnectException is thrown when a socket connection cannot be established with a remote machine. This type of exception usually indicates that there is no listening process on the remote machine.
public class java.net.ConnectException extends java.net.SocketException { // Constructors public ConnectException(); public ConnectException(String msg); }
This constructor creates a ConnectException with no associated detail message.
The detail message.
This constructor create a ConnectException with the specified detail message.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Throwable |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Exception, IOException, SocketException