class BadOrWrongStateException : Exception
<init>
BadOrWrongStateException(state: UIState, requiredState: KClass<out UIState>)
toUIError
fun Throwable.toUIError(): UIError