## Not run:
# f <- function(x) x ^ 2
# tryCatch(f("a"), error = function(e) func_error_handler(e, "f"))
# # Error in x^2 : non-numeric argument to binary operator
# # ---> called from within function: f
# ## End(Not run)
Run the code above in your browser using DataLab