Exception: AWS::Flow::FlowException

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

Overview

Direct Known Subclasses

ActivityFailureException, ChildWorkflowException, ChildWorkflowFailedException, FailWorkflowExecutionException, ScheduleActivityTaskFailedException, SignalExternalWorkflowException, StartChildWorkflowFailedException, StartTimerFailedException, WorkflowException

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (FlowException) initialize(reason = "Something went wrong in Flow", details = "But this indicates that it got corrupted getting out")

Creates a new FlowException.

Parameters:

  • reason (String) (defaults to: "Something went wrong in Flow")

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

  • details (String) (defaults to: "But this indicates that it got corrupted getting out")

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



46
47
48
49
50
51
52
53
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 46

def initialize(reason = "Something went wrong in Flow",
               details = "But this indicates that it got corrupted getting out")
  super(reason)
  @reason = reason
  @details = details
  details = details.message if details.is_a? Exception
  self.set_backtrace(details)
end

Instance Attribute Details

- (Object) details

A string containing details for the exception.



34
35
36
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 34

def details
  @details
end

- (Object) reason

A string containing the reason for the exception.



31
32
33
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/exceptions.rb', line 31

def reason
  @reason
end