open class SocketTimeoutException : InterruptedIOException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.io.IOException
   ↳ java.io.InterruptedIOException
   ↳ java.net.SocketTimeoutException

Signals that a timeout has occurred on a socket read or accept.

Summary

Public constructors

Construct a new SocketTimeoutException with no detailed message.

Constructs a new SocketTimeoutException with a detail message.

Inherited properties

From class InterruptedIOException

Int bytesTransferred

Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.

Public constructors

SocketTimeoutException

SocketTimeoutException()

Construct a new SocketTimeoutException with no detailed message.

SocketTimeoutException

SocketTimeoutException(msg: String!)

Constructs a new SocketTimeoutException with a detail message.

Parameters
msg String!: the detail message

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.