powered by
Throws a timestamped warning instead of stopping the program. This is the default exception handler used by Loggers.
default_exception_handler(e)
a character scalar, usually a try-error as thrown by base::tryCatch()
character
try-error
base::tryCatch()
The warning as character vector
# NOT RUN { tryCatch(stop("an error has occurred"), error = default_exception_handler) # }
Run the code above in your browser using DataLab