Exception: Sfn::ExecutionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Sfn::ExecutionError
- Defined in:
- lib/sfn/execution_log.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#events ⇒ Object
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize(msg, code, events) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(msg, code, events) ⇒ ExecutionError
Returns a new instance of ExecutionError.
7 8 9 10 11 |
# File 'lib/sfn/execution_log.rb', line 7 def initialize(msg, code, events) self.code = code self.events = JSON.parse(events) super(msg) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/sfn/execution_log.rb', line 5 def code @code end |
#events ⇒ Object
Returns the value of attribute events.
5 6 7 |
# File 'lib/sfn/execution_log.rb', line 5 def events @events end |