throw: Throw a Condition

Description Usage Arguments Details Value Examples

View source: R/throw.R

Description

Throws a condition of class c("error", "excerptr", "condition").

Usage

1
throw(message_string, system_call = sys.call(-1), ...)

Arguments

message_string

The message to be thrown.

system_call

The call to be thrown.

...

Arguments to be passed to base::structure.

Details

We use this condition as an error dedicated to excerptr.

Value

The function does never return anything, it stops with a condition of class c("error", "excerptr", "condition").

Examples

1
tryCatch(excerptr:::throw("Hello error!"), excerptr = function(e) return(e))

excerptr documentation built on Aug. 5, 2021, 1:06 a.m.