Exception: AWS::Flow::FlowException
- Inherits:
-
Exception
- Object
- Exception
- AWS::Flow::FlowException
- Defined in:
- lib/aws/decider/exceptions.rb
Overview
An exception that serves as the base for ChildWorkflowFailedException, FailWorkflowExecutionException, and ActivityFailureException.
Direct Known Subclasses
ActivityFailureException, ChildWorkflowException, ChildWorkflowFailedException, FailWorkflowExecutionException, ScheduleActivityTaskFailedException, SignalExternalWorkflowException, StartChildWorkflowFailedException, StartTimerFailedException, WorkflowException
Instance Attribute Summary collapse
-
#details ⇒ Object
A string containing details for the exception.
-
#reason ⇒ Object
A string containing the reason for the exception.
Instance Method Summary collapse
-
#initialize(reason = "Something went wrong in Flow", details = "But this indicates that it got corrupted getting out") ⇒ FlowException
constructor
Creates a new FlowException.
Constructor Details
#initialize(reason = "Something went wrong in Flow", details = "But this indicates that it got corrupted getting out") ⇒ FlowException
Creates a new FlowException.
46 47 48 49 50 51 52 |
# 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") @reason = reason @details = details details = details. if details.is_a? Exception self.set_backtrace(details) end |
Instance Attribute Details
#details ⇒ Object
A string containing details for the exception.
34 35 36 |
# File 'lib/aws/decider/exceptions.rb', line 34 def details @details end |
#reason ⇒ Object
A string containing the reason for the exception.
31 32 33 |
# File 'lib/aws/decider/exceptions.rb', line 31 def reason @reason end |