net.corda.core / ErrorOr / match

match

fun <T> match(onValue: (A) -> T, onError: (Throwable) -> T): T