Package java.net

Class 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 Details

    • 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.
    • SocketException

      public SocketException​(String detailMessage, Throwable cause)
      Constructs a new instance with given detail message and cause.