GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Module
  • Package
  • Use
  • Tree
  • Preview
  • New
  • Deprecated
  • Index
  • Help
  • SEARCH

This view

  • Original page
  • New address

GeezerVison is showing docs.oracle.com — SocketException (Java SE 21 & JDK 21)

Module java.base
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
Thrown to indicate that there is an error creating or accessing a Socket.
Since:
1.0
See Also:
  • Serialized Form
  • Constructor Summary

    Constructors
    Constructor
    Description
    SocketException()
    Constructs a new SocketException with no detail message.
    SocketException(String msg)
    Constructs a new SocketException with the specified detail message.
    SocketException(String msg, Throwable cause)
    Constructs a new SocketException with the specified detail message and cause.
    SocketException(Throwable cause)
    Constructs a new SocketException with the specified cause.
  • Method Summary

    Methods declared in class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods declared in class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SocketException

      public SocketException(String msg)
      Constructs a new SocketException with the specified detail message.
      Parameters:
      msg - the detail message.
    • SocketException

      public SocketException()
      Constructs a new SocketException with no detail message.
    • SocketException

      public SocketException(String msg, Throwable cause)
      Constructs a new SocketException with the specified detail message and cause.
      Parameters:
      msg - the detail message.
      cause - the cause
      Since:
      19
    • SocketException

      public SocketException(Throwable cause)
      Constructs a new SocketException with the specified cause.
      Parameters:
      cause - the cause
      Since:
      19
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.