Exception: AWS::Flow::ActivityTaskFailedException Abstract

Inherits:
ActivityFailureException show all
Defined in:
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

#initialize(id, activity_id, reason, details) ⇒ ActivityTaskFailedException

Creates a new ActivityTaskFailedException



170
171
172
173
174
175
# File 'lib/aws/decider/exceptions.rb', line 170

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

Instance Attribute Details

#causeObject

Returns the value of attribute cause.



168
169
170
# File 'lib/aws/decider/exceptions.rb', line 168

def cause
  @cause
end

#detailsObject

Returns the value of attribute details.



168
169
170
# File 'lib/aws/decider/exceptions.rb', line 168

def details
  @details
end