Exception: AWS::Flow::FlowException

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

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 '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

#detailsObject

A string containing details for the exception.



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

def details
  @details
end

#reasonObject

A string containing the reason for the exception.



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

def reason
  @reason
end