Class: Google::Apis::WorkflowexecutionsV1::Error

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workflowexecutions_v1/classes.rb,
lib/google/apis/workflowexecutions_v1/representations.rb,
lib/google/apis/workflowexecutions_v1/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.



126
127
128
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 126

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

Instance Attribute Details

#contextString

Human-readable stack trace string. Corresponds to the JSON property context

Returns:

  • (String)


114
115
116
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 114

def context
  @context
end

#payloadString

Error message and data returned represented as a JSON string. Corresponds to the JSON property payload

Returns:

  • (String)


119
120
121
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 119

def payload
  @payload
end

#stack_traceGoogle::Apis::WorkflowexecutionsV1::StackTrace

A collection of stack elements (frames) where an error occurred. Corresponds to the JSON property stackTrace



124
125
126
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 124

def stack_trace
  @stack_trace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
135
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 131

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