simulateError

fun simulateError(cause: Throwable, recoverable: Boolean = true)(source)

Transition to an error state.