org.dbunit.database
Class AmbiguousTableNameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dbunit.DatabaseUnitException
              extended by org.dbunit.dataset.DataSetException
                  extended by org.dbunit.database.AmbiguousTableNameException
All Implemented Interfaces:
Serializable

public class AmbiguousTableNameException
extends DataSetException

This exception is thrown by IDataSet when multiple tables having the same name are accessible. This usually occurs when the database connection have access to multiple schemas containing identical table names.

Possible solutions: 1) Use a database connection credential that has access to only one database schema. 2) Specify a schema name to the DatabaseConnection or DatabaseDataSourceConnection constructor. 3) Enable the qualified table name support (see How-to documentation).

Another common reason for this exception to be thrown is when an XML file contains the same table multiple times whereas a different table is between the definition of the duplicate table.

Since:
1.0 May 1, 2002
Version:
$Revision$ $Date$
Author:
Manuel Laflamme, Last changed by: $Author$
See Also:
Serialized Form

Constructor Summary
AmbiguousTableNameException()
           
AmbiguousTableNameException(String msg)
           
AmbiguousTableNameException(String msg, Throwable e)
           
AmbiguousTableNameException(Throwable e)
           
 
Method Summary
 
Methods inherited from class org.dbunit.DatabaseUnitException
getException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmbiguousTableNameException

public AmbiguousTableNameException()

AmbiguousTableNameException

public AmbiguousTableNameException(String msg)

AmbiguousTableNameException

public AmbiguousTableNameException(String msg,
                                   Throwable e)

AmbiguousTableNameException

public AmbiguousTableNameException(Throwable e)


Copyright © 2002–2014. All rights reserved.