powered by
Throws a condition of class c("error", "HandTill2001", "condition").
throw(message_string, system_call = sys.call(-1), ...)
The function does never return anything, it stops with a condition of class c("error", "HandTill2001", "condition").
The message to be thrown.
The call to be thrown.
Arguments to be passed to base::structure.
base::structure
We use this condition as an error dedicated to HandTill2001.
tryCatch(HandTill2001:::throw("Hello error!"), HandTill2001 = function(e) { return(e) })
Run the code above in your browser using DataLab