java.net
Class ConnectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.net.SocketException
                  extended by java.net.ConnectException
All Implemented Interfaces:
Serializable

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:
1.1
See Also:
Serialized Form

Constructor Summary
ConnectException()
          Create a new instance without a descriptive error message.
ConnectException(String message)
          Create a new instance with a descriptive error message, such as the text from strerror(3).
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectException

public ConnectException()
Create a new instance without a descriptive error message.


ConnectException

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

Parameters:
message - a message describing the error that occurred