public class PrinterIOException extends PrinterException
PrinterIOException类的子类PrinterException ,用来表示某种IO错误而发生的打印。
从版本1.4开始,这种异常已被改进以符合通用异常链接机制。 在建造时提供并通过getIOException()方法访问的“ IOException终止打印作业”现在被称为原因 ,并且可以通过Throwable.getCause()方法以及前述的“传统方法”来访问。
| Constructor and Description |
|---|
PrinterIOException(IOException exception)
构造一个新的 PrinterIOException与指定的字符串表示IOException 。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回此异常(的的原因
IOException终止打印作业)。
|
IOException |
getIOException()
返回
IOException打印作业的IOException。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PrinterIOException(IOException exception)
PrinterIOException与指定的字符串表示IOException 。
exception - 指定的
IOException
public IOException getIOException()
IOException打印作业的IOException。
这种方法早于通用异常链接工具。 Throwable.getCause()方法现在是获取此信息的首选方法。
IOException终止了打印作业。
IOException
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.