Learn R Programming

sentryR (version 1.1.2)

capture_exception: Report an error or exception object

Description

Report an error or exception object

Usage

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

Value

nothing; sends error to Sentry

Arguments

error

an error object

...

optional additional named parameters

level

the level of the message. Default: "error"

Examples

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

Run the code above in your browser using DataLab