java.net.SocketException
This SocketException may be thrown during socket creation or setting options,
and is the superclass of all other socket related exceptions.
Known Direct Subclasses
BindException |
A BindException is thrown when a process cannot bind a local address/port,
either because it is already bound or reserved by the OS. |
ConnectException |
This ConnectException is thrown when a connection cannot be established to a
remote host/port, because for instance a server was not listening. |
NoRouteToHostException |
The NoRouteToHostException may be thrown when attempting to connect to a
remote machine and because of network fault or firewall, no route can be
established. |
PortUnreachableException |
|
Known Indirect Subclasses
Summary
Public Constructors
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
SocketException()
Constructs a new instance of this class with its walkback filled in.
public
SocketException(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.
|