org.dbunit
Class DatabaseUnitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dbunit.DatabaseUnitException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataSetException, ExclusiveTransactionException, SearchException

public class DatabaseUnitException
extends java.lang.Exception

Version:
$Revision: 716 $
Author:
Manuel Laflamme
See Also:
Serialized Form

Constructor Summary
DatabaseUnitException()
          Constructs an DatabaseUnitException with no detail message and no encapsulated exception.
DatabaseUnitException(java.lang.String msg)
          Constructs an DatabaseUnitException with the specified detail message and no encapsulated exception.
DatabaseUnitException(java.lang.String msg, java.lang.Throwable e)
          Constructs an DatabaseUnitException with the specified detail message and encapsulated exception.
DatabaseUnitException(java.lang.Throwable e)
          Constructs an DatabaseUnitException with the encapsulated exception and use string representation as detail message.
 
Method Summary
 java.lang.Throwable getException()
          Deprecated. Use Throwable.getCause() to retrieve the nested exception
 
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

DatabaseUnitException

public DatabaseUnitException()
Constructs an DatabaseUnitException with no detail message and no encapsulated exception.


DatabaseUnitException

public DatabaseUnitException(java.lang.String msg)
Constructs an DatabaseUnitException with the specified detail message and no encapsulated exception.


DatabaseUnitException

public DatabaseUnitException(java.lang.String msg,
                             java.lang.Throwable e)
Constructs an DatabaseUnitException with the specified detail message and encapsulated exception.


DatabaseUnitException

public DatabaseUnitException(java.lang.Throwable e)
Constructs an DatabaseUnitException with the encapsulated exception and use string representation as detail message.

Method Detail

getException

public java.lang.Throwable getException()
Deprecated. Use Throwable.getCause() to retrieve the nested exception

Returns the nested exception or null if none.



Copyright © 2002-2008. All Rights Reserved.