Exception: Floe::ExecutionError
Direct Known Subclasses
Instance Attribute Summary collapse
-
#floe_error ⇒ Object
readonly
Returns the value of attribute floe_error.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message, floe_error = "States.Runtime") ⇒ ExecutionError
constructor
A new instance of ExecutionError.
- #to_output ⇒ Object
Constructor Details
#initialize(message, floe_error = "States.Runtime") ⇒ ExecutionError
Returns a new instance of ExecutionError.
65 66 67 68 |
# File 'lib/floe.rb', line 65 def initialize(, floe_error = "States.Runtime") super() @floe_error = floe_error end |
Instance Attribute Details
#floe_error ⇒ Object (readonly)
Returns the value of attribute floe_error.
63 64 65 |
# File 'lib/floe.rb', line 63 def floe_error @floe_error end |
Class Method Details
.from_output(output) ⇒ Object
57 58 59 60 61 |
# File 'lib/floe.rb', line 57 def self.from_output(output) raise ArgumentError unless output.kind_of?(Hash) && output.key?("Error") new(output["Cause"], output["Error"]) end |
Instance Method Details
#to_output ⇒ Object
70 71 72 73 74 75 |
# File 'lib/floe.rb', line 70 def to_output {"Error" => floe_error}.tap do |output| # If there is no "Cause" then ::Exception will use the exception class name output["Cause"] = if != self.class.name.to_s end end |