Class SoftAssertionError

  • All Implemented Interfaces:
    java.io.Serializable

    public class SoftAssertionError
    extends java.lang.AssertionError
    An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to be thrown.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> errors  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SoftAssertionError​(java.util.List<java.lang.String> errors)
      Creates a new SoftAssertionError.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getErrors()
      Returns the causal AssertionError error messages in the order that they were thrown.
      • 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
    • Field Detail

      • errors

        private final java.util.List<java.lang.String> errors
    • Constructor Detail

      • SoftAssertionError

        public SoftAssertionError​(java.util.List<java.lang.String> errors)
        Creates a new SoftAssertionError.
        Parameters:
        errors - the causal AssertionError error messages in the order that they were thrown
    • Method Detail

      • getErrors

        public java.util.List<java.lang.String> getErrors()
        Returns the causal AssertionError error messages in the order that they were thrown.
        Returns:
        the list of error messages