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
public 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
public 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
public IOException getCause ()

Returns the cause of this exception.

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