setError

fun setError(error: <Error class: unknown class>)

Sets the error state.

Parameters

error

The error to set