Exception: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Exceptions::StepResultDataNotExistingAttribute

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

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(key:, step:) ⇒ void

This method returns an undefined value.



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

def initialize_with_kwargs(key:, step:)
  message = <<~TEXT
    Step `#{step.printable_service}` result does NOT return `:#{key}` data attribute.

    Maybe there is a typo in `out` definition?

    Or `success` of `#{step.printable_service}` accepts a wrong key?
  TEXT

  initialize(message)
end