Added in API level 24

UncheckedIOException

open class UncheckedIOException : RuntimeException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.io.UncheckedIOException

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

Added in API level 24
UncheckedIOException(cause: IOException!)

Constructs an instance of this class.

Parameters
cause IOException!: the IOException
Exceptions
java.lang.NullPointerException if the cause is null

UncheckedIOException

Added in API level 24
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

Added in API level 24
open val cause: IOException?

Returns the cause of this exception.

Return
IOException? the IOException which is the cause of this exception.