public class UncheckedIOException
extends RuntimeException
java.lang.Object | ||||
java.lang.Throwable | ||||
java.lang.Exception | ||||
java.lang.RuntimeException | ||||
java.io.UncheckedIOException |
用未检查的异常包装 IOException
。
Public constructors |
|
---|---|
UncheckedIOException(String message, IOException cause) 构造这个类的一个实例。 |
|
UncheckedIOException(IOException cause) 构造这个类的一个实例。 |
公共方法(Public methods) |
|
---|---|
IOException |
getCause() 返回此异常的原因。 |
继承方法(Inherited methods) |
|
---|---|
![]() java.lang.Throwable
|
|
![]() java.lang.Object
|
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 (IOException cause)
构造这个类的一个实例。
参数(Parameters) | |
---|---|
cause |
IOException : the IOException |
抛出异常(Throws) | |
---|---|
NullPointerException |
if the cause is null |
IOException getCause ()
返回此异常的原因。
返回(Returns) | |
---|---|
IOException |
the IOException which is the cause of this exception. |