patterntesting.runtime.exception
Class DetailedAssertionError

Package class diagram package DetailedAssertionError
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by patterntesting.runtime.exception.DetailedAssertionError
All Implemented Interfaces:
Serializable

public class DetailedAssertionError
extends AssertionError

This is a kind of better AssertionError which gives you some more details of the given cause.

Since:
1.4 (02.01.2014)
Author:
oliver
See Also:
Serialized Form

Constructor Summary
DetailedAssertionError(Object detailMessage, Throwable cause)
          Instantiates a new detailed assertion error.
 
Method Summary
 Throwable getCause()
          Gets the cause.
 
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

DetailedAssertionError

public DetailedAssertionError(Object detailMessage,
                              Throwable cause)
Instantiates a new detailed assertion error.

Parameters:
detailMessage - the detail message
cause - the cause
Method Detail

getCause

public Throwable getCause()
Gets the cause.

Overrides:
getCause in class Throwable
Returns:
the cause
See Also:
Throwable.getCause()


Copyright © 2002–2014 PatternTesting Team. All rights reserved.