Exception: AWS::Flow::ChildWorkflowFailedException Abstract

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

Overview

This class is abstract.

An exception raised when the child workflow execution has failed.

Unhandled exceptions in child workflows are reported back to the parent workflow implementation by throwing a ChildWorkflowFailedException. The original exception can be retrieved from the FlowException#reason attribute of this exception. The exception also provides information in the #details attribute that is useful for debugging purposes, such as the unique identifiers of the child execution.

Instance Attribute Summary (collapse)

Attributes inherited from FlowException

#reason

Instance Method Summary (collapse)

Constructor Details

- (ChildWorkflowFailedException) initialize(event_id, execution, workflow_type, reason, details)

Creates a new ChildWorkflowFailedException

Parameters:

  • event_id

    The event ID for the exception.

  • execution

    The child workflow execution that raised the exception.

  • workflow_type

    The workflow type of the child workflow that raised the exception.

  • reason (String)

    The reason for the exception. This is made available to the exception receiver through the FlowException#reason attribute.

  • details (String)

    The details of the exception. This is made available to the exception receiver through the #details attribute.



102
103
104
105
106
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 102

def initialize(event_id, execution, workflow_type, reason, details)
  @cause = details
  # TODO This should probably do more with the event_id, execution, workflow_type
  super(reason, details)
end

Instance Attribute Details

- (Object) cause

Returns the value of attribute cause



88
89
90
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 88

def cause
  @cause
end

- (Object) details

Returns the value of attribute details



88
89
90
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 88

def details
  @details
end