throw {HandTill2001}R Documentation

Throw a Condition

Description

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

Usage

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 HandTill2001.

Value

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

Examples

tryCatch(HandTill2001:::throw("Hello error!"), HandTill2001 = function(e) {
  return(e)
})

[Package HandTill2001 version 1.0.1 Index]