java.lang.Object
java.lang.Throwable
java.lang.Exception
java.awt.print.PrinterException
java.awt.print.PrinterIOException
- 所有已实现的接口:
-
Serializable
PrinterIOException类是PrinterException的子类,用于指示在打印时发生了某种IO错误。
从1.4版本开始,此异常已经过改进,以符合通用的异常链接机制。在构造时提供并通过getIOException()方法访问的“终止打印作业的IOException”现在被称为cause,可以通过Throwable.getCause()方法以及前述的“传统方法”访问。
- 参见:
-
Constructor Summary
ConstructorsConstructorDescriptionPrinterIOException(IOException exception) 用指定的IOException的字符串表示形式构造一个新的PrinterIOException。 -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PrinterIOException
用指定的IOException的字符串表示形式构造一个新的PrinterIOException。- 参数:
-
exception- 指定的IOException
-
-
Method Details
-
getIOException
返回终止打印作业的IOException。此方法早于通用目的的异常链接功能。现在,通过
Throwable.getCause()方法是获取此信息的首选方法。- 返回:
-
终止打印作业的
IOException。 - 参见:
-
getCause
返回此异常的原因(终止打印作业的IOException)。
-