- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- javax.imageio.IIOException
-
- All Implemented Interfaces:
-
Serializable
- 已知直接子类:
-
IIOInvalidTreeException
public class IIOException extends IOException
用于发信号读取和写入操作失败的异常类。除了消息字符串外,还保留对另一个
Throwable(Error或异常)的引用。 此引用(如果非null)引用导致此异常发生的事件。 例如,从IOException读取的File将被存储在那里。- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 IIOException(String message)构造一个IIOException与给定的消息String。IIOException(String message, Throwable cause)构造一个IIOException与给定的消息String和一个Throwable这是其根本原因。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
IIOException
public IIOException(String message)
构造一个IIOException与给定的消息String。 没有根本原因设定;getCause将返回null。- 参数
-
message- 错误信息。 - 另请参见:
-
Throwable.getMessage()
-
IIOException
public IIOException(String message, Throwable cause)
构造一个IIOException与给定的消息String和一个Throwable这是其根本原因。- 参数
-
message- 错误信息。 -
cause- 导致此异常发生的Throwable(Error或异常)。 - 另请参见:
-
Throwable.getCause(),Throwable.getMessage()
-
-