PrinterIOException class is a subclass of
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
getIOException() method is now known as the cause,
and may be accessed via the Throwable#getCause() method,
as well as the aforementioned "legacy method."
| Modifier and Type | Field and Description |
|---|---|
| private IOException | mException
The IO error that terminated the print job. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.4 for interoperability.
|
| Access | Constructor and Description |
|---|---|
| public | PrinterIOException(IOException
the specified exception)IOExceptionConstructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | Returns: the cause of this exception.Overrides java. Returns the cause of this exception (the |
| public IOException | Returns: theIOException that terminated
the print job.Returns the |
| mException | back to summary |
|---|---|
| private IOException mException The IO error that terminated the print job. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.4 for interoperability. | |
| PrinterIOException | back to summary |
|---|---|
| public PrinterIOException(IOException exception) Constructs a new
| |
| getCause | back to summary |
|---|---|
| public Throwable getCause() Overrides java. Returns the cause of this exception (the
| |
| getIOException | back to summary |
|---|---|
| public IOException getIOException() Returns the This method predates the general-purpose exception chaining facility.
The
| |