java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
javax.imageio.IIOException
- 所有已实现的接口:
-
Serializable
- 直接已知的子类:
-
IIOInvalidTreeException
用于表示读取和写入操作运行时失败的异常类。
除了消息字符串外,还维护对另一个Throwable(Error或Exception)的引用。如果该引用非null,则指向导致此异常发生的事件。例如,在从File读取时发生IOException将存储在那里。
- 参见:
-
Constructor Summary
ConstructorsConstructorDescriptionIIOException(String message) 使用给定的消息String构造一个IIOException。IIOException(String message, Throwable cause) 使用给定的消息String和作为其根本原因的Throwable构造一个IIOException。 -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IIOException
使用给定的消息String构造一个IIOException。未设置根本原因;getCause将返回null。- 参数:
-
message- 错误消息。 - 参见:
-
IIOException
使用给定的消息String和作为其根本原因的Throwable构造一个IIOException。- 参数:
-
message- 错误消息。 -
cause- 导致此异常发生的Throwable(Error或Exception)。 - 参见:
-