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`.



171
172
173
174
175
176
# File '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

#causeObject

Returns the value of attribute cause.



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

def cause
  @cause
end

#detailsObject

Returns the value of attribute details.



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

def details
  @details
end