org.assertj.core.api
Class SoftAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
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
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 |
SoftAssertionError
public SoftAssertionError(List<String> errors)
- Creates a new SoftAssertionError.
- Parameters:
errors
- the causal AssertionError error messages in the order that they were thrown
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.