public class IIOException extends IOException
另外一个消息字符串,引用了另一个Throwable(Error或异常)保持。这个参考,如果non-null,指的是引发此异常发生的事件。例如,一个IOException而从File阅读将储存在那里。
| Constructor and Description |
|---|
IIOException(String message)
构建一个给定的消息
String一
IIOException。
|
IIOException(String message, Throwable cause)
构建一个给定的消息
String和
Throwable,其根本原因
IIOException。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IIOException(String message)
String一
IIOException。根本原因是集;
getCause将返回
null。
message的错误信息。
Throwable.getMessage()
public IIOException(String message, Throwable cause)
String和
Throwable,其根本原因
IIOException。
message的错误信息。
cause -
Throwable(
Error或
异常)引发此异常发生。
Throwable.getCause(),
Throwable.getMessage()
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.