/** @author Scott Marshall @author University of Glasgow, MSc IT Project 2001 @author Building an OnLine Course in Computing Fundamentals */ package ukacgla_BinaryConverter; /** Class designed to record the location of an exception in a 2D array. Each EmptyCellException is constructed using the row and column co ordinates of the location of the exception within the 2D array. */ public class EmptyCellException extends Exception { private int row; private int col; public EmptyCellException (int r, int c){ row = r; col = c; } /** Returns the x co ordinate of the exception source. */ protected int getRow() { return row; } /** Returns the y co ordinate of the exception source. */ protected int getCol() { return col; } }