getResultOrThrow

abstract fun getResultOrThrow(): T

Return

the value, or throws the TerminalException of a failure.