/*
 * PrinterException.java
 *
 * Created on March 13 2008, 13:31
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.shtrih.fiscalprinter.command;

/**
 *
 * @author V.Kravtsov
 */

import jpos.JposException;
    
public class PrinterException extends Exception
{
    private final int errorCode;
    
    public PrinterException(int errorCode, String message)
    {
        super(message);
        this.errorCode = errorCode;
    }
    
    public int getErrorCode()
    {
        return errorCode;
    }
}
