grapes-except-grapes: Simple error handling

Description Usage Arguments Value See Also

Description

Binary operator for terse error handling. If the left-hand-side results in an error, the right-hand-side handles it an expression or a function, which is applied to the raised Error object.

Usage

1
try_expression %except% catch_expression

Arguments

try_expression

Passed to expr argument of tryCatch.

catch_expression

Passed to error argument of tryCatch. Can be an expression or a function which is applied to the raised Error object.

Value

Result of try_expression or catch_expression.

See Also

tryCatch


eachanjohnson/errR documentation built on May 29, 2019, 11:02 p.m.