Exception: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeMethodStep::Exceptions::MethodForStepIsNotDefined

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(step:) ⇒ void

This method returns an undefined value.



31
32
33
34
35
36
37
38
39
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/exceptions.rb', line 31

def initialize_with_kwargs(step:)
  message = <<~TEXT
    Service `#{step.organizer.class}` tries to use `:#{step.method}` method in a step, but it is NOT defined.

    Did you forget to define it?
  TEXT

  initialize(message)
end