public class UncheckedIOException extends RuntimeException
IOException
与未经检查的异常。
Constructor and Description |
---|
UncheckedIOException(IOException cause)
构造这个类的一个实例。
|
UncheckedIOException(String message, IOException cause)
构造这个类的一个实例。
|
Modifier and Type | Method and Description |
---|---|
IOException |
getCause()
返回此异常的原因。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UncheckedIOException(String message, IOException cause)
message
- 详细信息,可以为null
cause
-
IOException
NullPointerException
- 如果原因是
null
public UncheckedIOException(IOException cause)
cause
-
IOException
NullPointerException
- 如果原因是
null
public IOException getCause()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.