Exception: java.awt.print.PrinterIOException
- public exception PrinterIOException
- extends PrinterException
The
PrinterIOException class is a subclass of
java.awt.print.PrinterException and is used to indicate that an IO error
of some sort has occurred while printing.
As of release 1.4, this exception has been retrofitted to conform to
the general purpose exception-chaining mechanism. The
"IOException that terminated the print job"
that is provided at construction time and accessed via the
java.awt.print.PrinterIOException.getIOException() method is now known as the cause,
and may be accessed via the Throwable.getCause() method,
as well as the aforementioned "legacy method."
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.awt.print.PrinterException
- java.awt.print.PrinterIOException
Methods
-
PrinterIOExceptiontop
public PrinterIOException(IOException exception)Constructs a newPrinterIOExceptionwith the string representation of the specified java.io.IOException. -
getCausetop
public Throwable getCause()Returns the the cause of this exception (theIOExceptionthat terminated the print job). -
getIOExceptiontop
public IOException getIOException()Returns theIOExceptionthat terminated the print job.This method predates the general-purpose exception chaining facility. The Throwable.getCause() method is now the preferred means of obtaining this information.
Fields
-
mException
private IOException mExceptionThe IO error that terminated the print job. -
serialVersionUID
static final long serialVersionUID = 5850870712125932846
