Error Class

Format

An R6Class generator object

Public fields

code

integer

message

character

Methods


Method new()

Create an Error

Usage

Error$new(code, message, ...)

Arguments

code

Error code.

message

Error message.

...

local optional variable arguments


Method toJSON()

Serialize to list object suitable for jsonlite

Usage

Error$toJSON()


Method fromJSON()

Deserialize from jsonlite list object

Usage

Error$fromJSON(ErrorJson)

Arguments

ErrorJson

list object.


Method toJSONString()

Serialize to JSON string.

Usage

Error$toJSONString()


Method fromJSONString()

Deserialize from JSON string

Usage

Error$fromJSONString(ErrorJson)

Arguments

ErrorJson

JSON string


Method clone()

The objects of this class are cloneable with this method.

Usage

Error$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.