Sha256: 9355fc31f4e3bc1af9cac875b18da4b96daaf51de2b10ea8432487f366011471

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Step
            module Plugins
              module CanBeMethodStep
                module CanBeExecuted
                  module Exceptions
                    class MethodForStepIsNotDefined < ::ConvenientService::Exception
                      ##
                      # @param service_class [Class]
                      # @param method_name [Symbol]
                      # @return [void]
                      #
                      def initialize_with_kwargs(service_class:, method_name:)
                        message = <<~TEXT
                          Service `#{service_class}` tries to use `:#{method_name}` method in a step, but it is NOT defined.

                          Did you forget to define it?
                        TEXT

                        initialize(message)
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed/exceptions.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed/exceptions.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed/exceptions.rb