Most visited

Recently visited

Added in API level 24

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

From class java.lang.Throwable
From class java.lang.Object

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.

Hooray!