Name

ConnectException

Synopsis

Signals that a socket cannot be connected to a remote address and port. This means that the remote host can be reached, but is not responding, perhaps because there is no process on that host that is listening on the specified port.

java.net.ConnectException

Figure 12-2. java.net.ConnectException

public class ConnectException extends SocketException {
// Public Constructors
     public ConnectException( );  
     public ConnectException(String msg);  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.