setGlobalError

fun MutableState<PagesState>.setGlobalError(error: Exception?, type: ErrorType? = ErrorType.CRITICAL)