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. |