Class: WorkflowTemplate::Fatal::BadReturnKeys

Inherits:
Fatal
  • Object
show all
Defined in:
lib/workflow_template/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(action_name, keys) ⇒ BadReturnKeys

Returns a new instance of BadReturnKeys.



40
41
42
43
44
# File 'lib/workflow_template/error.rb', line 40

def initialize(action_name, keys)
  keys = keys.map { |key| "'#{key.inspect}' (#{key.class.name})" }
  full_message = "Invalid return from '#{action_name}' action, symbolic keys expected, got #{keys.join(', ')}"
  super(full_message)
end