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


用未检查的异常包装 IOException

Summary

Public constructors

UncheckedIOException(String message, IOException cause)

构造这个类的一个实例。

UncheckedIOException(IOException cause)

构造这个类的一个实例。

Public methods

IOException getCause()

返回此异常的原因。

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)

构造这个类的一个实例。

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)

构造这个类的一个实例。

Parameters
cause IOException: the IOException
Throws
NullPointerException if the cause is null

Public methods

getCause

Added in API level 24
IOException getCause ()

返回此异常的原因。

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

Hooray!