public class PrinterIOException extends PrinterException
PrinterException
PrinterIOException类子类,用于表示打印时出现某种IO错误。
在1.4版本中,该异常已被更新以符合通用异常链机制。“IOException终止打印作业”,是在施工时提供的并经getIOException()方法访问现在被称为零原因,可通过Throwable.getCause()方法访问,以及前述的“传统方法”。
| Constructor and Description |
|---|
PrinterIOException(IOException exception)
构建与指定的字符串表示的一种新
PrinterIOException
IOException。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
返回的原因该例外(的
IOException终止打印作业)。
|
IOException |
getIOException()
返回
IOException终止打印作业。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PrinterIOException(IOException exception)
PrinterIOException
IOException。
exception -指定
IOException
public IOException getIOException()
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.