expectError

open fun expectError(): SE

Expects that an error occurred during saga processing.

Return

The expecter instance for method chaining.


open fun <E : Throwable> expectError(expected: E.() -> Unit): SE

Expects a specific error with custom assertions.

This method first ensures an error occurred, then applies the provided expectations to the error instance.

Return

The expecter instance for method chaining.

Parameters

E

The type of the expected error.

expected

A lambda function that configures expectations on the error.