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