#' FailedState
#'
#' @export
#' @format \code{\link{R6Class}} object, super class \code{\link{State}}.
#' @field error of type String.
#' @field reason of type String.
FailedState <- R6::R6Class("FailedState", inherit = State, public = list(error = NULL,
reason = NULL, initialize = function(json = NULL) {
super$initialize(json = json)
}, init = function() {
super$init()
self$error = ""
self$reason = ""
}, initJson = function(json) {
super$initJson(json)
self$error = json$error
self$reason = json$reason
}, toTson = function() {
m = super$toTson()
m$kind = tson.scalar("FailedState")
m$error = tson.scalar(self$error)
m$reason = tson.scalar(self$reason)
return(m)
}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.