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

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(container:, method:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

Since:

  • 1.0.0



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