default_exception_handler: Demote an Exception to a Warning

Description Usage Arguments Value Examples

View source: R/default_functions.R

Description

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

Usage

1

Arguments

e

a character scalar, usually a try-error as thrown by base::tryCatch()

Value

The warning as character vector

Examples

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

s-fleck/yog documentation built on Jan. 23, 2019, 9:13 a.m.