rbsb2.faux-class: Class "faux" to handle errors occurring within functions

Description Objects from the Class Slots Extends Methods Author(s) Examples

Description

When an error occurred while running some code inside a function, the first step is to stop the process with an error message. Here an attempt is made to catch the error and return the error message through a standardized object which can filtered at any level in the hierarchy of calls.

Objects from the Class

Objects can be created by calls of the form new("faux", ...).

Slots

level:

Object of class "integer" 0 (no error), 1 (warning), 2 (fatal error)

name:

Object of class "character" slot of a /des/

orig:

Object of class "character" slot of a /des/

time:

Object of class "character" slot of a /des/

defi:

Object of class "character" slot of a /des/

role:

Object of class "character" slot of a /des/

comm:

Object of class "character" slot of a /des/

Extends

Class "des", directly.

Methods

print

signature(x = "faux"): see print8faux for the details.

Author(s)

Jean-Baptiste Denis

Examples

1
2
3
showClass("faux");
rbsb3k("reset"); # needed only for R checking, to be forgotten
print(new("faux",level=0,name="No Error"));

rbsb documentation built on May 31, 2017, 1:45 a.m.