default_exception_handler {lgr} | R Documentation |
Throws a timestamped warning instead of stopping the program. This is the default exception handler used by Loggers.
default_exception_handler(e)
e |
an |
The warning as character
vector
tryCatch(stop("an error has occurred"), error = default_exception_handler)