default_exception_handler: Demote an exception to a warning

View source: R/default_functions.R

default_exception_handlerR Documentation

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

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


lgr documentation built on Sept. 6, 2022, 1:05 a.m.