Module java.base
Package java.net

Class SocketTimeoutException

java.lang.Object
java.lang.Throwable
All Implemented Interfaces:
Serializable

public classSocketTimeoutExceptionextendsInterruptedIOException
Signals that a timeout has occurred on a socket read or accept.
Since:
1.4
See Also:
  • Constructor Details

    • SocketTimeoutException

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

      public SocketTimeoutException()
      Construct a new SocketTimeoutException with no detailed message.