dataOrThrow

fun <T> Optional<T>.dataOrThrow(throwable: Throwable): T(source)

Returns Optional.data if Optional.dataPresented of this is true, or throw throwable otherwise