FileDocCategorySizeDatePackage
PrinterException.javaAPI DocExample763Thu Nov 08 00:22:44 GMT 2001com.ora.rmibook.chapter12.printer

PrinterException.java

package com.ora.rmibook.chapter12.printer;


import java.io.*;


public class PrinterException extends Exception {
    private int _numberOfPagesPrinted;
    private String _humanReadableErrorDescription;

    public PrinterException() {
        // zero arg constructor needed for serialization
    }

    public PrinterException(int numberOfPagesPrinted,
        String humanReadableErrorDescription) {
        _numberOfPagesPrinted = numberOfPagesPrinted;
        _humanReadableErrorDescription = humanReadableErrorDescription;
    }

    public int getNumberOfPagesPrinted() {
        return _numberOfPagesPrinted;
    }

    public String getHumanReadableErrorDescription() {
        return _humanReadableErrorDescription;
    }
}