JavaTM Platform
Standard Ed. 6

javax.imageio
类 IIOException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 javax.imageio.IIOException
所有已实现的接口:
Serializable
直接已知子类:
IIOInvalidTreeException

public class IIOException
     
extends IOException

该异常类用于发出关于读取和写入操作的运行时故障的信号。

除了消息字符串以外,也维护对另一个 ThrowableErrorException)的引用。此引用(如果为非 null)引用导致此异常发生的事件。例如,从 File 中进行读取时发生的 IOException 将存储在这里。

另请参见:
序列化表格

构造方法摘要
IIOException(String message)
          构造带有给定消息 StringIIOException
IIOException(String message, Throwable cause)
          构造一个 IIOException,使其带有给定消息 String 以及作为其底层 cause 的 Throwable
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

IIOException

public IIOException(String message)
构造带有给定消息 StringIIOException。没有设置任何底层 cause; getCause 将返回 null

参数:
message - 错误消息。
另请参见:
Throwable.getMessage()

IIOException

public IIOException(String message,
                    Throwable cause)
构造一个 IIOException,使其带有给定消息 String 以及作为其底层 cause 的 Throwable

参数:
message - 错误消息。
cause - 造成此异常发生的 ThrowableErrorException)。
另请参见:
Throwable.getCause(), Throwable.getMessage()

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策