Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.net

Class ConnectException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.io.IOException
         |
         +--java.net.SocketException
            |
            +--java.net.ConnectException


public class ConnectException

extends SocketException

This exception indicates that an error occurred while attempting to connect to a remote host. Often this indicates that the remote host refused the connection (ie, is not listening on the target socket).

Since:Authors:

Constructor Summary

ConnectException()

Create a new instance without a descriptive error message.
ConnectException(java.lang.String message)

Create a new instance with a descriptive error message, such as the text from strerror(3).

Constructor Details

ConnectException

public ConnectException()

Create a new instance without a descriptive error message.


ConnectException

public ConnectException(java.lang.String message)

Create a new instance with a descriptive error message, such as the text from strerror(3).

Parameters: