Class: WorkflowTemplate::Fatal::BadActionReturn

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

Instance Method Summary collapse

Constructor Details

#initialize(action_name, value) ⇒ BadActionReturn

Returns a new instance of BadActionReturn.



29
30
31
32
33
34
35
36
# File 'lib/workflow_template/error.rb', line 29

def initialize(action_name, value)
  full_message = <<~ERR.squish
    Invalid return from '#{action_name}' action, nil or Hash expected,
    got '#{value.inspect}' (#{value.class.name})
  ERR

  super(full_message)
end