UncheckedIOException | API reference | Android Developers (original) (raw)
open class UncheckedIOException : RuntimeException
kotlin.Any | |||
---|---|---|---|
↳ | kotlin.Throwable | ||
↳ | java.lang.Exception | ||
↳ | java.lang.RuntimeException | ||
↳ |
Wraps an [IOException](/reference/kotlin/java/io/IOException)
with an unchecked exception.
Summary
Public constructors |
---|
UncheckedIOException(cause: IOException!) Constructs an instance of this class. |
UncheckedIOException(message: String!, cause: IOException!) Constructs an instance of this class. |
Properties | |
---|---|
open IOException? | cause Returns the cause of this exception. |
Public constructors
UncheckedIOException
UncheckedIOException(cause: IOException!)
Constructs an instance of this class.
Parameters | |
---|---|
cause | IOException!: the IOException |
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.