Stay organized with collections
Save and categorize content based on your preferences.
SocketTimeoutException
open class SocketTimeoutException : InterruptedIOException
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.
|
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SocketTimeoutException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSocketTimeoutException\n======================\n\n```\nopen class SocketTimeoutException : InterruptedIOException\n```\n\n|---|---|---|---|---|--------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||||\n| | ↳ | [java.lang.Exception](../lang/Exception.html#) ||||\n| | | ↳ | [java.io.IOException](../io/IOException.html#) |||\n| | | | ↳ | [java.io.InterruptedIOException](../io/InterruptedIOException.html#) ||\n| | | | | ↳ | [java.net.SocketTimeoutException](#) |\n\nSignals that a timeout has occurred on a socket read or accept.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SocketTimeoutException](#SocketTimeoutException())`()` Construct a new SocketTimeoutException with no detailed message. |\n| [SocketTimeoutException](#SocketTimeoutException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new SocketTimeoutException with a detail message. |\n\n| Inherited properties ||\n|---|---|\n| From class [InterruptedIOException](../io/InterruptedIOException.html#) |----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [bytesTransferred](../io/InterruptedIOException.html#bytesTransferred:kotlin.Int) Reports how many bytes had been transferred as part of the I/O operation before it was interrupted. \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### SocketTimeoutException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSocketTimeoutException()\n```\n\nConstruct a new SocketTimeoutException with no detailed message. \n\n### SocketTimeoutException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSocketTimeoutException(msg: String!)\n```\n\nConstructs a new SocketTimeoutException with a detail message.\n\n| Parameters ||\n|-------|-------------------------------------------------------------------------------------------------------|\n| `msg` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message |"]]