Exception: Sfn::ExecutionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sfn/execution_log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/sfn/execution_log.rb', line 5

def code
  @code
end

#eventsObject

Returns the value of attribute events.



5
6
7
# File 'lib/sfn/execution_log.rb', line 5

def events
  @events
end