|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.awt.print.PrinterException
java.awt.print.PrinterIOException
public class PrinterIOException
PrinterIOException 类是 PrinterException 的子类,用于指示在打印过程中发生了某种 IO 错误。
从 1.4 版本开始,此异常已经改进,以符合通用异常链机制。在构造时提供并通过 getIOException() 方法访问的“终止打印作业的 IOException”就是目前所说的 cause,可以通过 Throwable.getCause() 方法以及上述“遗留方法”访问它。
| 构造方法摘要 | |
|---|---|
PrinterIOException(IOException exception)
构造具有指定 IOException 字符串表示形式的新 PrinterIOException。 |
|
| 方法摘要 | |
|---|---|
Throwable |
getCause()
返回此异常的 cause(终止打印作业的 IOException)。 |
IOException |
getIOException()
返回终止打印作业的 IOException。 |
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public PrinterIOException(IOException exception)
IOException 字符串表示形式的新 PrinterIOException。
exception - 指定的 IOException| 方法详细信息 |
|---|
public IOException getIOException()
IOException。
这是通用异常链设施之前的方法。现在 Throwable.getCause() 方法是获得此信息的首选方法。
IOException。IOExceptionpublic Throwable getCause()
IOException)。
Throwable 中的 getCause
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。