orThrow

abstract fun orThrow()

Throws an Exception if the result is a failure.