Class DetailedAssertionError

  • All Implemented Interfaces:
    java.io.Serializable

    public class DetailedAssertionError
    extends java.lang.AssertionError
    This is a kind of better AssertionError which gives you some more details of the given cause. It was introduced because with in Java 6 you have no constructor DetailedAssertionError(Object, Throwable).
    Since:
    1.4 (02.01.2014)
    Author:
    oliver
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DetailedAssertionError​(java.lang.Object detailMessage, java.lang.Throwable cause)
      Instantiates a new detailed assertion error.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Gets the cause.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(java.lang.Object detailMessage,
                                      java.lang.Throwable cause)
        Instantiates a new detailed assertion error.
        Parameters:
        detailMessage - the detail message
        cause - the cause
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Gets the cause.
        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        the cause
        See Also:
        Throwable.getCause()