- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.awt.print.PrinterException
-
- java.awt.print.PrinterIOException
-
- 实现的所有接口
-
Serializable
public class PrinterIOException extends PrinterException
该PrinterIOException类的子类PrinterException,用来表示某种IO错误而发生的打印。从版本1.4开始,此异常已经过改进,以符合通用异常链机制。 的“
IOException终止打印作业”是在构造的时候提供的,访问经由getIOException()方法现在被称为原因 ,并且可以经由被访问Throwable.getCause()方法,以及前面提到的“遗留方法”。- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 构造器 描述 PrinterIOException(IOException exception)构造一个新PrinterIOException用指定的字符串表示IOException。
-
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 ThrowablegetCause()返回此异常的原因(终止打印作业的IOException)。IOExceptiongetIOException()返回终止打印作业的IOException。
-
-
-
构造方法详细信息
-
PrinterIOException
public PrinterIOException(IOException exception)
构造一个新PrinterIOException用指定的字符串表示IOException。- 参数
-
exception- 指定的IOException
-
-
方法详细信息
-
getIOException
public IOException getIOException()
返回终止打印作业的IOException。此方法早于通用异常链设施。
Throwable.getCause()方法现在是获取此信息的首选方法。- 结果
-
IOException终止了打印作业。 - 另请参见:
-
IOException
-
-