A wrapper around tryCatch to be used to avoid assertion duplication

check_fun_args(x, y, ...)

Arguments

x

A function.

y

First argument passed to fun.

...

Arguments to be passed to fun.