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:
Serializable
Direct Known Subclasses:
DataSetException, ExclusiveTransactionException, SearchException

public class DatabaseUnitException
extends Exception

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

Constructor Summary
DatabaseUnitException()
          Constructs an DatabaseUnitException with no detail message and no encapsulated exception.
DatabaseUnitException(String msg)
          Constructs an DatabaseUnitException with the specified detail message and no encapsulated exception.
DatabaseUnitException(String msg, Throwable e)
          Constructs an DatabaseUnitException with the specified detail message and encapsulated exception.
DatabaseUnitException(Throwable e)
          Constructs an DatabaseUnitException with the encapsulated exception and use string representation as detail message.
 
Method Summary
 Throwable getException()
          Returns the encapsuled exception or null if none.
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, 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(String msg)
Constructs an DatabaseUnitException with the specified detail message and no encapsulated exception.


DatabaseUnitException

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


DatabaseUnitException

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

Method Detail

getException

public Throwable getException()
Returns the encapsuled exception or null if none.


printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


Copyright © 2002-2011. All Rights Reserved.