MultipleFailuresError

actual typealias MultipleFailuresError = org.opentest4j.MultipleFailuresError
expect open class MultipleFailuresError(heading: String?, failures: List<Throwable>) : AssertionError
actual open class MultipleFailuresError(heading: String?, val failures: List<Throwable>) : AssertionError

MultipleFailuresError is an AssertionError that aggregates multiple failures thrown in a given context (i.e., typically within the invocation of a single test).

Author

Johannes Link

Sam Brannen

Marc Philipp

Since

1.0

Author

Johannes Link

Sam Brannen

Marc Philipp

Constructors

Link copied to clipboard
expect constructor(heading: String?, failures: List<Throwable>)
actual constructor(heading: String?, failures: List<Throwable>)

Properties

Link copied to clipboard
open val cause: Throwable?
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard

Returns the list of failures contained in this error.

Link copied to clipboard
Link copied to clipboard
open override val message: String?
open val message: String?

Functions

Link copied to clipboard
expect fun hasFailures(): Boolean
actual fun hasFailures(): Boolean

Returns whether this error contains any failures.