Sha256: 993c29023f0f240b602f26b7b1005485c06e0f24576888731a3987fa44af109f

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Step
            module Plugins
              module CanBeResultStep
                module CanBeExecuted
                  module Exceptions
                    class MethodForStepIsNotDefined < ::ConvenientService::Exception
                      ##
                      # @param service_class [Class]
                      # @param method_name [Symbol]
                      # @return [void]
                      #
                      def initialize(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

                        super(message)
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.16.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/exceptions.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/exceptions.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/exceptions.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/exceptions.rb