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
ThisSocketExceptionmay 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 Detail
-
SocketException
public SocketException()
Constructs a new instance.
-
SocketException
public SocketException(String detailMessage)
Constructs a new instance with the given detail message.
-
SocketException
public SocketException(Throwable cause)
Constructs a new instance with the given cause.
-
-