corda / net.corda.core.utilities / Try / Failure / getOrThrow

getOrThrow

fun getOrThrow(): A

Returns the value if a Success otherwise throws the exception if a Failure.