R/pr_set.R
pr_set_error.Rd
Set the error handler that is invoked if any filter or endpoint generates an error
pr_set_error(pr, fun)
pr | A Plumber API. Note: The supplied Plumber API object will also be updated in place as well as returned by the function. |
---|---|
fun | An error handler function. This should accept |
The Plumber router with a modified error handler