corda / net.corda.core / ErrorOr / catch

catch

inline fun <T : Any> catch(body: () -> T): ErrorOr<T>

Runs the given lambda and wraps the result.