onFailure

Invoked after each failing iteration to configure how a failure should be handled.

This handler is executed after the parameterize block's decorator completes, and before onComplete.

Note: Failures from within onFailure will propagate out uncaught, terminating parameterize without onComplete being executed. Immediately re-throwing the provided failure in this way may be desirable if the parameterize block is not meant to fail.

Defaults to:

onFailure = { failure ->
throw failure
}

See also