getOrThrow

fun <R, E : Exception> Result<R, E>.getOrThrow(): R

Return the value of the success case or throws the exception.