Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

lgr

A Fully Featured Logging Framework

v0.4.2
MIT + file LICENSE
Authors
Stefan Fleck [aut, cre] (<https://orcid.org/0000-0003-3344-9851>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.