
public PrinterAbor tException(String msg);
}
Hierar chy: Object→ Throwable(Serializable)→ Exception→ PrinterException→ PrinterAbor tException
PrinterException Ja va 1.2
java.awt.print serializable checked
This class serves as the superclass for all exceptions that may arise in the process of
printing. See the subclasses PrinterAbor tException and PrinterIOException. PrinterException and
its subclasses are checked exceptions, they must be declared in the throws clauses of
methods that may throw them.
public class PrinterException extends Exception {
// Public Constructors
public PrinterException();
public PrinterException(String msg);
}
Hierar chy: Object→ Throwable(Serializable)→ Exception→ PrinterException
Subc lasses: PrinterAbor tException, PrinterIOException
Thrown By: Printable.print(), PrinterJob.print()
PrinterGraphics Ja va 1. 2
java.awt.print
This interface is implemented by any Graphics object that is passed to the print() method
of a Printable object. This means that a Printable can always cast its Graphics object to a
PrinterGraphics object and use the getPrinterJob() method to obtain the PrinterJob that is in
use.
public abstract interface PrinterGraphics {
// Public Instance Methods
public abstract PrinterJob getPrinterJob();
}
PrinterIOException Ja va 1.2
java.awt.print serializable checked
Indicates that an I/O error occurred during the printing process. This usually means
that the PrinterJob ...