tryCatch2
Examples
tryCatch2(1 + 1)
#> [1] 2
tryCatch2(stop("example error"))
#> <simpleError in doTryCatch(return(expr), name, parentenv, handler): example error>
tryCatch2
tryCatch2(1 + 1)
#> [1] 2
tryCatch2(stop("example error"))
#> <simpleError in doTryCatch(return(expr), name, parentenv, handler): example error>