Exception: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Exceptions::FirstStepIsNotSet

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:) ⇒ void



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb', line 18

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

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