Package java.net
Class SocketException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BindException,ConnectException,NoRouteToHostException,PortUnreachableException
public class SocketException extends IOException
This
SocketException may be thrown during socket creation or setting
options, and is the superclass of all other socket related exceptions.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SocketException()Constructs a new instance.SocketException(String detailMessage)Constructs a new instance with the given detail message.SocketException(String detailMessage, Throwable cause)Constructs a new instance with given detail message and cause.SocketException(Throwable cause)Constructs a new instance with the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SocketException
public SocketException()Constructs a new instance. -
SocketException
Constructs a new instance with the given detail message. -
SocketException
Constructs a new instance with the given cause. -
SocketException
Constructs a new instance with given detail message and cause.
-