Exception: AWS::Flow::ActivityTaskFailedException Abstract

Inherits:
ActivityFailureException show all
Defined in:
aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb

Overview

This class is abstract.

An exception raised when the activity task has failed.

Unhandled exceptions in activities are reported back to the workflow implementation by throwing an ActivityTaskFailedException. The original exception can be retrieved from the reason attribute of this exception. The exception also provides information in the details attribute that is useful for debugging purposes, such as the unique activity identifier in the history.

Instance Attribute Summary (collapse)

Attributes inherited from FlowException

#reason

Instance Method Summary (collapse)

Constructor Details

- (ActivityTaskFailedException) initialize(id, activity_id, reason, details)

Creates a new ActivityTaskFailedException.



171
172
173
174
175
176
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 171

def initialize(id, activity_id, reason, details)
  @id = id
  @activity_id = activity_id
  @cause = details
  super(reason, details)
end

Instance Attribute Details

- (Object) cause

Returns the value of attribute cause



169
170
171
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 169

def cause
  @cause
end

- (Object) details

Returns the value of attribute details



169
170
171
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 169

def details
  @details
end