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!