Catch

inline fun Catch(vararg states: DataModel<*>, filter: (DataModel<*>) -> Boolean = { true }, content: @Composable CatchScope.(err: Throwable) -> Unit = { Throw(error = it) })

Catch for any DataModels to be rejected.

Parameters

states

The DataModels to catch.

filter

A function to filter the error.

content

The content to display when the query is rejected. By default, it throws the error.