org.assertj.core.api
Class SoftAssertionError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by org.assertj.core.api.SoftAssertionError
All Implemented Interfaces:
Serializable

public class SoftAssertionError
extends AssertionError

An AssertionError that contains the error messages of the one or more AssertionErrors that caused this exception to be thrown.

Author:
Brian Laframboise
See Also:
Serialized Form

Constructor Summary
SoftAssertionError(List<String> errors)
          Creates a new SoftAssertionError.
 
Method Summary
 List<String> getErrors()
          Returns the causal AssertionError error messages in the order that they were thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

SoftAssertionError

public SoftAssertionError(List<String> errors)
Creates a new SoftAssertionError.

Parameters:
errors - the causal AssertionError error messages in the order that they were thrown
Method Detail

getErrors

public List<String> getErrors()
Returns the causal AssertionError error messages in the order that they were thrown.

Returns:
the list of error messages


Copyright © 2013–2015 AssertJ. All rights reserved.