default_exception_handler {lgr} | R 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 |
Value
The warning as character
vector
Examples
tryCatch(stop("an error has occurred"), error = default_exception_handler)
[Package lgr version 0.4.4 Index]