FallbackHandle

fun interface FallbackHandle<S : State, A : Action, E : Effect>

Handles unhandled exception that occur during a state transition or handling an effect.

Functions

Link copied to clipboard
abstract operator fun invoke(state: S?, action: A?, effect: E?, exception: Throwable): A

If action and effect are null, it indicates the exception was thrown during state transition. If effect is null, it indicates the exception was thrown during action handling. If action is null, it indicates the exception was thrown during effect handling.