Exception: AWS::Flow::ActivityTaskFailedException Abstract
- Inherits:
-
ActivityFailureException
- Object
- Exception
- FlowException
- ActivityFailureException
- AWS::Flow::ActivityTaskFailedException
- 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
-
#cause ⇒ Object
Returns the value of attribute cause.
-
#details ⇒ Object
Returns the value of attribute details.
Attributes inherited from FlowException
Instance Method Summary collapse
-
#initialize(id, activity_id, reason, details) ⇒ ActivityTaskFailedException
constructor
Creates a new ‘ActivityTaskFailedException`.
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
#cause ⇒ Object
Returns the value of attribute cause.
168 169 170 |
# File 'lib/aws/decider/exceptions.rb', line 168 def cause @cause end |
#details ⇒ Object
Returns the value of attribute details.
168 169 170 |
# File 'lib/aws/decider/exceptions.rb', line 168 def details @details end |