onError

open fun <S : Any> onError(emitter: StateEmitter<S>, error: Throwable)

Called whenever Cubit.addError / Bloc.addError is invoked.