net.corda.core / ErrorOr / catch

catch

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

Runs the given lambda and wraps the result.