corda / net.corda.client.jackson / getOrReport

getOrReport

fun <T> <ERROR CLASS><T>.getOrReport(out: PrintWriter?): T?

Gets the value from the Try object if that contains successful result. In case of the failure it'll returns null and report using the provided PrintWriter or trow the exception if the PrintWriter is null