Exception: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Exceptions::FirstGroupStepIsNotSet

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(container:, method:) ⇒ void

This method returns an undefined value.

Parameters:



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb', line 45

def initialize_with_kwargs(container:, method:)
  printable_container = Utils::Class.display_name(container)

  message = "    First step of `\#{method}` from `\#{printable_container}` is NOT set.\n\n    Did you forget to use `step`? For example:\n\n    class \#{printable_container}\n      # ...\n\n      \#{method} do\n        step SomeService\n\n        # ...\n      end\n\n      # ...\n    end\n  TEXT\n\n  initialize(message)\nend\n"