getOrThrow

fun getOrThrow(): T

Gets the result, if successful, or throws an exception if it was a failure