Class AssertionFailedError

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ComparisonFailure

    public class AssertionFailedError
    extends java.lang.AssertionError
    Thrown when an assertion failed.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      AssertionFailedError()
      Constructs a new AssertionFailedError without a detail message.
      AssertionFailedError​(java.lang.String message)
      Constructs a new AssertionFailedError with the specified detail message.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String defaultString​(java.lang.String message)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, 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

      • AssertionFailedError

        public AssertionFailedError()
        Constructs a new AssertionFailedError without a detail message.
      • AssertionFailedError

        public AssertionFailedError​(java.lang.String message)
        Constructs a new AssertionFailedError with the specified detail message. A null message is replaced by an empty String.
        Parameters:
        message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • Method Detail

      • defaultString

        private static java.lang.String defaultString​(java.lang.String message)