AmbiguousTableNameException.java

  1. /*
  2.  *
  3.  * The DbUnit Database Testing Framework
  4.  * Copyright (C)2002-2004, DbUnit.org
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Lesser General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2.1 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Lesser General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Lesser General Public
  17.  * License along with this library; if not, write to the Free Software
  18.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  19.  *
  20.  */

  21. package org.dbunit.database;

  22. import org.dbunit.dataset.DataSetException;

  23. /**
  24.  * This exception is thrown by {@link org.dbunit.dataset.IDataSet} when multiple tables
  25.  * having the same name are accessible. This usually occurs when the database
  26.  * connection have access to multiple schemas containing identical table names.
  27.  * <p>
  28.  * Possible solutions:
  29.  * 1) Use a database connection credential that has access to only one database
  30.  * schema.
  31.  * 2) Specify a schema name to the {@link DatabaseConnection} or
  32.  * {@link DatabaseDataSourceConnection} constructor.
  33.  * 3) Enable the qualified table name support (see How-to documentation).
  34.  * </p>
  35.  *
  36.  * <p>
  37.  * Another common reason for this exception to be thrown is when an XML file
  38.  * contains the same table multiple times whereas a different table is between
  39.  * the definition of the duplicate table.
  40.  * </p>
  41.  *
  42.  * @author Manuel Laflamme
  43.  * @author Last changed by: $Author$
  44.  * @version $Revision$ $Date$
  45.  * @since 1.0  May 1, 2002
  46.  */
  47. public class AmbiguousTableNameException extends DataSetException
  48. {
  49.     public AmbiguousTableNameException()
  50.     {
  51.     }

  52.     public AmbiguousTableNameException(String msg)
  53.     {
  54.         super(msg);
  55.     }

  56.     public AmbiguousTableNameException(String msg, Throwable e)
  57.     {
  58.         super(msg, e);
  59.     }

  60.     public AmbiguousTableNameException(Throwable e)
  61.     {
  62.         super(e);
  63.     }
  64. }