Top Description Fields Constructors Methods
org.assertj.core.api

public Class SoftAssertionError

extends AssertionError
Class Inheritance
Static Imports
org.assertj.core.error.AssertionErrorMessagesAggregator.aggregateErrorMessages

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

Field Summary

Modifier and TypeField and Description
private final List<String>
private static final long

Constructor Summary

AccessConstructor and Description
public
SoftAssertionError(List<String>
the causal AssertionError error messages in the order that they were thrown
errors
)

Creates a new SoftAssertionError.

Method Summary

Modifier and TypeMethod and Description
public List<String>

Returns:

the list of error messages
getErrors
()

Returns the causal AssertionError error messages in the order that they were thrown.

Field Detail

errorsback to summary
private final List<String> errors
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.AssertionError.serialVersionUID.

Constructor Detail

SoftAssertionErrorback to summary
public SoftAssertionError(List<String> errors)

Creates a new SoftAssertionError.

Parameters
errors:List<String>

the causal AssertionError error messages in the order that they were thrown

Method Detail

getErrorsback to summary
public List<String> getErrors()

Returns the causal AssertionError error messages in the order that they were thrown.

Returns:List<String>

the list of error messages