catch

@JvmName(name = "tryCatch")
inline fun <R> Result.Companion.catch(f: () -> R): Result<R>(source)

Calls the specified function block and returns its encapsulated result if invocation was successful, catching any non-fatal exceptions thrown from the block function execution and encapsulating them as failures.