java.awt.print
Class PrinterIOException

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable 
      extended by java.lang.Exception sample code for java.lang.Exception definition code for java.lang.Exception 
          extended by java.awt.print.PrinterException sample code for java.awt.print.PrinterException definition code for java.awt.print.PrinterException 
              extended by java.awt.print.PrinterIOException
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class PrinterIOException
extends PrinterException sample code for java.awt.print.PrinterException definition code for java.awt.print.PrinterException

The PrinterIOException class is a subclass of PrinterException sample code for java.awt.print.PrinterException definition code for 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 getIOException() sample code for java.awt.print.PrinterIOException.getIOException() definition code for java.awt.print.PrinterIOException.getIOException() method is now known as the cause, and may be accessed via the Throwable.getCause() sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() method, as well as the aforementioned "legacy method."

See Also:
Serialized Form

Constructor Summary
PrinterIOException sample code for java.awt.print.PrinterIOException.PrinterIOException(java.io.IOException) definition code for java.awt.print.PrinterIOException.PrinterIOException(java.io.IOException) (IOException sample code for java.io.IOException definition code for java.io.IOException  exception)
          Constructs a new PrinterIOException with the string representation of the specified IOException sample code for java.io.IOException definition code for java.io.IOException .
 
Method Summary
 Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable getCause sample code for java.awt.print.PrinterIOException.getCause() definition code for java.awt.print.PrinterIOException.getCause() ()
          Returns the the cause of this exception (the IOException that terminated the print job).
 IOException sample code for java.io.IOException definition code for java.io.IOException getIOException sample code for java.awt.print.PrinterIOException.getIOException() definition code for java.awt.print.PrinterIOException.getIOException() ()
          Returns the IOException that terminated the print job.
 
Methods inherited from class java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
fillInStackTrace sample code for java.lang.Throwable.fillInStackTrace() definition code for java.lang.Throwable.fillInStackTrace() , getLocalizedMessage sample code for java.lang.Throwable.getLocalizedMessage() definition code for java.lang.Throwable.getLocalizedMessage() , getMessage sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , getStackTrace sample code for java.lang.Throwable.getStackTrace() definition code for java.lang.Throwable.getStackTrace() , initCause sample code for java.lang.Throwable.initCause(java.lang.Throwable) definition code for java.lang.Throwable.initCause(java.lang.Throwable) , printStackTrace sample code for java.lang.Throwable.printStackTrace() definition code for java.lang.Throwable.printStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintStream) definition code for java.lang.Throwable.printStackTrace(java.io.PrintStream) , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) definition code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) , setStackTrace sample code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) definition code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) , toString sample code for java.lang.Throwable.toString() definition code for java.lang.Throwable.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

PrinterIOException sample code for java.awt.print.PrinterIOException(java.io.IOException) definition code for java.awt.print.PrinterIOException(java.io.IOException)

public PrinterIOException(IOException sample code for java.io.IOException definition code for java.io.IOException  exception)
Constructs a new PrinterIOException with the string representation of the specified IOException sample code for java.io.IOException definition code for java.io.IOException .

Parameters:
exception - the specified IOException
Method Detail

getIOException sample code for java.awt.print.PrinterIOException.getIOException() definition code for java.awt.print.PrinterIOException.getIOException()

public IOException sample code for java.io.IOException definition code for java.io.IOException  getIOException()
Returns the IOException that terminated the print job.

This method predates the general-purpose exception chaining facility. The Throwable.getCause() sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() method is now the preferred means of obtaining this information.

Returns:
the IOException that terminated the print job.
See Also:
IOException sample code for java.io.IOException definition code for java.io.IOException

getCause sample code for java.awt.print.PrinterIOException.getCause() definition code for java.awt.print.PrinterIOException.getCause()

public Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable  getCause()
Returns the the cause of this exception (the IOException that terminated the print job).

Overrides:
getCause sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() in class Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
Returns:
the cause of this exception.
Since:
1.4