Exception: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Exceptions::FirstConditionalGroupStepIsNotSet

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:



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb', line 76

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

  message = <<~TEXT
    First step of `#{method}` from `#{printable_container}` is NOT set.

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

    class #{printable_container}
      # ...

      #{method} SomeService do
        step SomeOtherService

        # ...
      end

      # ...
    end
  TEXT

  initialize(message)
end