APIdia Launch Partner
Top Description Fields Constructors Methods
java.awt.print

public Class PrinterIOException

extends PrinterException
Class Inheritance
Imports
java.io.IOException, .Serial

The 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."

Field Summary

Modifier and TypeField and Description
private IOException
mException

The IO error that terminated the print job.

private static final long
serialVersionUID

Hides java.awt.print.PrinterException.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
public
PrinterIOException(IOException
the specified IOException
exception
)

Constructs a new PrinterIOException with the string representation of the specified IOException.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the cause of this exception.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception (the IOException that terminated the print job).

public IOException

Returns:

the IOException that terminated the print job.
getIOException
()

Returns the IOException that terminated the print job.

Field Detail

mExceptionback to summary
private IOException mException

The IO error that terminated the print job.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.print.PrinterException.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

PrinterIOExceptionback to summary
public PrinterIOException(IOException exception)

Constructs a new PrinterIOException with the string representation of the specified IOException.

Parameters
exception:IOException

the specified IOException

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this exception (the IOException that terminated the print job).

Returns:Throwable

the cause of this exception.

Since
1.4
getIOExceptionback to summary
public IOException getIOException()

Returns the IOException that 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.

Returns:IOException

the IOException that terminated the print job.

See Also
IOException