Stay organized with collections
Save and categorize content based on your preferences.
ConnectTimeoutException
open class ConnectTimeoutException : InterruptedIOException
A timeout while connecting to an HTTP server or waiting for an available connection from an HttpConnectionManager.
Summary
Public constructors |
Creates a ConnectTimeoutException with a null detail message.
|
Creates a ConnectTimeoutException with the specified detail message.
|
Public constructors
ConnectTimeoutException
ConnectTimeoutException()
Creates a ConnectTimeoutException with a null detail message.
ConnectTimeoutException
ConnectTimeoutException(message: String!)
Creates a ConnectTimeoutException with the specified detail message.
Parameters |
message |
String!: The exception 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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ConnectTimeoutException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 22](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nConnectTimeoutException\n=======================\n\n```\nopen class ConnectTimeoutException : 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](../../../../java/lang/Exception.html#) ||||\n| | | ↳ | [java.io.IOException](../../../../java/io/IOException.html#) |||\n| | | | ↳ | [java.io.InterruptedIOException](../../../../java/io/InterruptedIOException.html#) ||\n| | | | | ↳ | [org.apache.http.conn.ConnectTimeoutException](#) |\n\n*** ** * ** ***\n\n| **This exception was deprecated in API level 22.**\n|\n| Please use java.net.URL#openConnection instead. Please visit [this webpage](http://android-developers.blogspot.com/2011/09/androids-http-clients.html) for further details.\n\nA timeout while connecting to an HTTP server or waiting for an available connection from an HttpConnectionManager.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ConnectTimeoutException](#ConnectTimeoutException())`()` Creates a ConnectTimeoutException with a null detail message. |\n| [ConnectTimeoutException](#ConnectTimeoutException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Creates a ConnectTimeoutException with the specified detail message. |\n\n| Inherited properties ||\n|---|---|\n| From class [InterruptedIOException](../../../../java/io/InterruptedIOException.html#) |----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [bytesTransferred](../../../../java/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### ConnectTimeoutException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nConnectTimeoutException()\n```\n\nCreates a ConnectTimeoutException with a null detail message. \n\n### ConnectTimeoutException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nConnectTimeoutException(message: String!)\n```\n\nCreates a ConnectTimeoutException with the specified detail message.\n\n| Parameters ||\n|-----------|-----------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: The exception detail message |"]]