/*
 * DIFCellException.java
 *
 * Created on January 28, 2008, 8:51 PM
 *
 * Copyright 2008 Clarke, Solomou & Associates Microsystems Ltd.
 *
 * This file is part of DIF
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */

package com.csam.dif;

/**
 *
 * @author Nathan Crause
 */
public class DIFCellException extends DIFRowException {
    
    /**
     * Creates a new instance of DIFCellException without detail message.
     */
    public DIFCellException(DIFSheet sheet, int rowNumber, int cellNumber) {
        super(sheet, rowNumber);
        this.cellNumber = cellNumber;
    }
    
    
    /**
     * Constructs an instance of DIFCellException with the specified detail message.
     * 
     * @param msg the detail message.
     */
    public DIFCellException(String msg, DIFSheet sheet, int rowNumber, int cellNumber) {
        super(msg, sheet, rowNumber);
        this.cellNumber = cellNumber;
    }
    
    
    /**
     * Constructs an instance of DIFCellException with the specified root cause.
     * 
     * @param cause the root cause of the exception.
     */
    public DIFCellException(Throwable cause, DIFSheet sheet, int rowNumber, int cellNumber) {
        super(cause, sheet, rowNumber);
        this.cellNumber = cellNumber;
    }
    
    
    /**
     * Constructs an instance of DIFCellException with the specified detail message and root cause.
     * 
     * @param msg the detail message.
     * @param cause the root cause of the exception.
     */
    public DIFCellException(String msg, Throwable cause, DIFSheet sheet, int rowNumber, int cellNumber) {
        super(msg, cause, sheet, rowNumber);
        this.cellNumber = cellNumber;
    }

    /**
     * Holds value of property cellNumber.
     */
    private int cellNumber;

    /**
     * Getter for property cellNumber.
     * @return Value of property cellNumber.
     */
    public int getCellNumber() {
        return this.cellNumber;
    }
}

 

Ads help maintain this website.