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:



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

def initialize_with_kwargs(container:, method:)
  message = <<~TEXT
    First step of `#{method}` from `#{container}` is NOT set.

    Did you forget to use `step`? For example:

    class #{container}
      # ...

      #{method} do
        step SomeService

        # ...
      end

      # ...
    end
  TEXT

  initialize(message)
end