package ModSQL;

/* $Id: EndOfTable.java,v 1.4 2003/05/29 05:48:45 cvs Exp $
 *
 * Copyright (c) 2003 Chris Studholme <chris.studholme@utoronto.ca>
 *
 * May be copied or modified under the terms of the GNU General Public
 * License.  See COPYING for more information.
 */

/**
 * A throwable to indicate that the end of a table has been reached.  This
 * class also records which TableReader is responsible for the table who's
 * end has been reached.
 *
 * @author chris.studholme@utoronto.ca
 */
public class EndOfTable extends Throwable { 

  /** TableReader responsible to table. */
  private TableReader reader;

  /**
   * Constructor.
   */
  public EndOfTable(TableReader reader) {
    this.reader = reader;
  }

  /**
   * Get reference to TableReader responsible for table.
   *
   * @return reader responsible for table
   */
  public TableReader getReader() {
    return reader;
  }

};
