Debian Codegraph @

man/default_exception_handler.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/default_functions.R
3 \name{default_exception_handler}
4 \alias{default_exception_handler}
5 \title{Demote an exception to a warning}
6 \usage{
7 default_exception_handler(e)
8 }
9 \arguments{
10 \item{e}{an \verb{error condition} object}
11 }
12 \value{
13 The warning as \code{character} vector
14 }
15 \description{
16 Throws a timestamped warning instead of stopping the program. This is
17 the default exception handler used by \link{Loggers}.
18 }
19 \examples{
20 tryCatch(stop("an error has occurred"), error = default_exception_handler)
21
22 }