Learn R Programming

lgr (version 0.3.4)

default_exception_handler: Demote an exception to a warning

Description

Throws a timestamped warning instead of stopping the program. This is the default exception handler used by Loggers.

Usage

default_exception_handler(e)

Arguments

e

an error condition object

Value

The warning as character vector

Examples

Run this code
# NOT RUN {
tryCatch(stop("an error has occurred"), error = default_exception_handler)

# }

Run the code above in your browser using DataLab