UncheckedIOException

public class UncheckedIOException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.io.UncheckedIOException


Wraps an IOException with an unchecked exception.

Summary

Public constructors

UncheckedIOException(String message, IOException cause)

Constructs an instance of this class.

UncheckedIOException(IOException cause)

Constructs an instance of this class.

Public methods

IOException getCause()

Returns the cause of this exception.

Inherited methods

Public constructors

UncheckedIOException

added in API level 24
UncheckedIOException (String message, 
                IOException cause)

Constructs an instance of this class.

Parameters
message String: the detail message, can be null

cause IOException: the IOException

Throws
NullPointerException if the cause is null

UncheckedIOException

added in API level 24
UncheckedIOException (IOException cause)

Constructs an instance of this class.

Parameters
cause IOException: the IOException

Throws
NullPointerException if the cause is null

Public methods

getCause

added in API level 24
IOException getCause ()

Returns the cause of this exception.

Returns
IOException the IOException which is the cause of this exception.