getOrThrow

fun getOrThrow(): T

Returns the successful value, or throws the failure exception.

Return

The successful value.

Throws

if this result is a failure.