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.
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
#cause ⇒ Object
Returns the value of attribute cause.
169 170 171 |
# File 'lib/aws/decider/exceptions.rb', line 169 def cause @cause end |
#details ⇒ Object
Returns the value of attribute details.
169 170 171 |
# File 'lib/aws/decider/exceptions.rb', line 169 def details @details end |