Skip to contents

a class for handling error messages

Public fields

message

the error message

object

an R object which can be stored in the class instance if an error and a result should be returned together.

Methods


Method new()

create a new ErrorClass Object

Usage

ErrorClass$new(message, object = NULL)

Arguments

message

the string describing the error

object

is optional if something besides the message should be stored


Method clone()

The objects of this class are cloneable with this method.

Usage

ErrorClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.