Package org.dbunit.database
Class AmbiguousTableNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dbunit.DatabaseUnitException
org.dbunit.dataset.DataSetException
org.dbunit.database.AmbiguousTableNameException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anAmbiguousTableNameExceptionwith no detail message and no encapsulated exception.Constructs anAmbiguousTableNameExceptionwith the specified detail message and no encapsulated exception.Constructs anAmbiguousTableNameExceptionwith the specified detail message and encapsulated exception.Constructs anAmbiguousTableNameExceptionwith the encapsulated exception and use string representation as detail message. -
Method Summary
Methods inherited from class org.dbunit.DatabaseUnitException
getExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AmbiguousTableNameException
public AmbiguousTableNameException()Constructs anAmbiguousTableNameExceptionwith no detail message and no encapsulated exception. -
AmbiguousTableNameException
Constructs anAmbiguousTableNameExceptionwith the specified detail message and no encapsulated exception.- Parameters:
msg- the detail message, typically the ambiguous table name.
-
AmbiguousTableNameException
Constructs anAmbiguousTableNameExceptionwith the specified detail message and encapsulated exception.- Parameters:
msg- the detail message, typically the ambiguous table name.e- the encapsulated exception.
-
AmbiguousTableNameException
Constructs anAmbiguousTableNameExceptionwith the encapsulated exception and use string representation as detail message.- Parameters:
e- the encapsulated exception.
-