Exception: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Exceptions::NotCompletedStep

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

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(method_name:, step:) ⇒ void

This method returns an undefined value.



194
195
196
197
198
199
200
201
202
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/exceptions.rb', line 194

def initialize_with_kwargs(method_name:, step:)
  message = <<~TEXT
    `out` method `#{method_name}` is called before its corresponding step `#{step.printable_service}` is completed.

    Maybe it makes sense to change the steps order?
  TEXT

  initialize(message)
end