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)


s-fleck/yog documentation built on July 12, 2024, 2:29 a.m.