Class: Google::Apis::WorkflowexecutionsV1beta::Error

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/workflowexecutions_v1beta/classes.rb,
generated/google/apis/workflowexecutions_v1beta/representations.rb,
generated/google/apis/workflowexecutions_v1beta/representations.rb

Overview

Error describes why the execution was abnormally terminated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Error

Returns a new instance of Error.



52
53
54
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 52

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contextString

Human readable error context, helpful for debugging purposes. Corresponds to the JSON property context

Returns:

  • (String)


45
46
47
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 45

def context
  @context
end

#payloadString

Error payload returned by the execution, represented as a JSON string. Corresponds to the JSON property payload

Returns:

  • (String)


50
51
52
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 50

def payload
  @payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



57
58
59
60
# File 'generated/google/apis/workflowexecutions_v1beta/classes.rb', line 57

def update!(**args)
  @context = args[:context] if args.key?(:context)
  @payload = args[:payload] if args.key?(:payload)
end