This is a small wrapper around tryCatch() that captures any
condition signalled while evaluating its argument. It is useful for
debugging and unit testing.
Usage
catch_cnd(expr)
Arguments
expr
Expression to be evaluated with a catch-all condition
handler.