Throw

fun Throw(error: Throwable, key: Any? = null, host: CatchThrowHost = LocalCatchThrowHost.current)

Deprecated

This implementation is deprecated. Please use the new implementation from soil-reacty module instead.

Replace with

import soil.plant.compose.reacty.CatchScope.Throw
Throw(error, key, host)

Throw propagates the caught exception to a CatchThrowHost.

Parameters

error

The caught exception.

key

The key to identify the caught exception.

host

The CatchThrowHost to manage the caught exception. By default, it uses the LocalCatchThrowHost.