lgr (version 0.4.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)

Value

The warning as character vector

Arguments

e

an error condition object

Examples

Run this code
tryCatch(stop("an error has occurred"), error = default_exception_handler)

Run the code above in your browser using DataLab