junitx.ddtunit
Class DDTException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by junitx.ddtunit.DDTException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DDTSetUpException, DDTTearDownException, DDTTestDataException

public class DDTException
extends RuntimeException

Base exception of ddtunit package.

Author:
jg
See Also:
Serialized Form

Constructor Summary
DDTException()
          Standard exception class for any ddtunit specific problems
DDTException(String message)
          Standard exception class for any ddtunit specific problems
DDTException(String message, Throwable aCause)
          Standard exception class for any ddtunit specific problems
DDTException(Throwable aCause)
          Standard exception class for any ddtunit specific problems
 
Method Summary
static DDTException create(StringBuffer message, Throwable exception)
          Create exception with compact trace hirachie information summariesed in exception message.
 Throwable getCause()
          get cause exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

DDTException

public DDTException()
Standard exception class for any ddtunit specific problems


DDTException

public DDTException(String message)
Standard exception class for any ddtunit specific problems

Parameters:
message - to display in exception

DDTException

public DDTException(Throwable aCause)
Standard exception class for any ddtunit specific problems

Parameters:
aCause - of actuall exception

DDTException

public DDTException(String message,
                    Throwable aCause)
Standard exception class for any ddtunit specific problems

Parameters:
message - to display in exception
aCause - of actuall exception
Method Detail

getCause

public Throwable getCause()
get cause exception

Overrides:
getCause in class Throwable
Returns:
cause of exception or null if not exists
See Also:
Throwable.getCause()

create

public static DDTException create(StringBuffer message,
                                  Throwable exception)
Create exception with compact trace hirachie information summariesed in exception message.

Parameters:
message - provided as prefix of exception
exception - to start information exception
Returns:
DDTException with created message


Copyright © 2004-2011. All Rights Reserved.