setError

fun setError(error: Exception?, type: ErrorType? = ErrorType.WARNING)

Sets an error on either the global error state or the screen state.

Parameters

error

The exception to set as an error.

type

The severity level of the error.