Stay organized with collections
Save and categorize content based on your preferences.
UncheckedIOException
open class UncheckedIOException : RuntimeException
Wraps an IOException
with an unchecked exception.
Summary
Public constructors |
Constructs an instance of this class.
|
Constructs an instance of this class.
|
Properties |
open IOException? |
Returns the cause of this exception.
|
Public constructors
UncheckedIOException
UncheckedIOException(cause: IOException!)
Constructs an instance of this class.
Exceptions |
java.lang.NullPointerException |
if the cause is null |
UncheckedIOException
UncheckedIOException(
message: String!,
cause: IOException!)
Constructs an instance of this class.
Parameters |
message |
String!: the detail message, can be null |
cause |
IOException!: the IOException |
Exceptions |
java.lang.NullPointerException |
if the cause is null |
Properties
cause
open val cause: IOException?
Returns the cause of this exception.
Return |
IOException? |
the IOException which is the cause of this exception. |
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,["# UncheckedIOException\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUncheckedIOException\n====================\n\n```\nopen class UncheckedIOException : RuntimeException\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.lang.RuntimeException](../lang/RuntimeException.html#) ||\n| | | | ↳ | [java.io.UncheckedIOException](#) |\n\nWraps an [IOException](/reference/kotlin/java/io/IOException) with an unchecked exception.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UncheckedIOException](#UncheckedIOException(java.io.IOException))`(`cause:` `[IOException](/reference/kotlin/java/io/IOException)!`)` Constructs an instance of this class. |\n| [UncheckedIOException](#UncheckedIOException(kotlin.String,%20java.io.IOException))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[IOException](/reference/kotlin/java/io/IOException)!`)` Constructs an instance of this class. |\n\n| Properties ||\n|------------------------------------------------------------|--------------------------------------------------------------------------|\n| open [IOException](/reference/kotlin/java/io/IOException)? | [cause](#cause:java.io.IOException) Returns the cause of this exception. |\n\nPublic constructors\n-------------------\n\n### UncheckedIOException\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUncheckedIOException(cause: IOException!)\n```\n\nConstructs an instance of this class.\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------|\n| `cause` | [IOException](/reference/kotlin/java/io/IOException)!: the `IOException` |\n\n| Exceptions ||\n|----------------------------------|------------------------|\n| `java.lang.NullPointerException` | if the cause is `null` |\n\n### UncheckedIOException\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUncheckedIOException(\n message: String!, \n cause: IOException!)\n```\n\nConstructs an instance of this class.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message, can be null |\n| `cause` | [IOException](/reference/kotlin/java/io/IOException)!: the `IOException` |\n\n| Exceptions ||\n|----------------------------------|------------------------|\n| `java.lang.NullPointerException` | if the cause is `null` |\n\nProperties\n----------\n\n### cause\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val cause: IOException?\n```\n\nReturns the cause of this exception.\n\n| Return ||\n|-------------------------------------------------------|---------------------------------------------------------|\n| [IOException](/reference/kotlin/java/io/IOException)? | the `IOException` which is the cause of this exception. |"]]