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

This method returns an undefined value.

Parameters:



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

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

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

    class #{container}
      # ...

      step SomeService

      # ...
    end
  TEXT

  initialize(message)
end