Report an error or exception object

capture_exception(error, ..., level = "error")

Arguments

error

an error object

...

optional additional named parameters

level

the level of the message. Default: "error"

Value

nothing; sends error to Sentry

Examples

if (FALSE) { capture_exception(simpleError("foo"), tags = list(version = "1.0")) }