模块 java.desktop

类 IIOException

所有已实现的接口:
Serializable
已知子类:
IIOInvalidTreeException

public class IIOException extends IOException
用于指示读取和写入操作的运行时失败的异常类。

除了消息字符串之外,还保留了对另一个ThrowableErrorException)的引用。如果此引用不是null,则指的是导致此异常发生的事件。例如,从 File 读取的 IOException 将存储在那里。

参见:
  • 构造方法详细信息

    • IIOException

      public IIOException(String  message)
      用给定的消息 String 构造一个 IIOException 。没有确定根本原因; getCause 将返回 null
      参数:
      message - 错误信息。
      参见:
    • IIOException

      public IIOException(String  message, Throwable  cause)
      使用给定消息 String 和作为其根本原因的 Throwable 构造一个 IIOException
      参数:
      message - 错误信息。
      cause - 导致此异常发生的 ThrowableErrorException)。
      参见: