class AWS::Flow::FlowException

An exception that serves as the base for {ChildWorkflowFailedException}, {FailWorkflowExecutionException}, and {ActivityFailureException}.

Attributes

details[RW]

A string containing details for the exception.

reason[RW]

A string containing the reason for the exception.

Public Class Methods

new(reason = "Something went wrong in Flow", details = "But this indicates that it got corrupted getting out") click to toggle source

Creates a new FlowException.

@param reason [String]

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

@param details [String]

The details of the exception. This is made available to the exception receiver through the {#details}
attribute.
Calls superclass method
# 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