Skip to contents

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)
#> Warning: [2025-07-23 06:40:35.167] NULL ~ error in `doTryCatch(return(expr), name, parentenv, handler)`: an error has occurred