orElseThrow

fun <V, E : Throwable> Result<V, E>.orElseThrow(): Ok<V>

Throws the error if this Result is Err, otherwise returns this Ok.