Sha256: 07ae738d9b4cd2dc6e6aab83291517e249c72d3706cf4942205495a8bb48efa8

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultMethodSteps
        module Errors
          class MethodForStepIsNotDefined < ConvenientService::Error
            def initialize(service_class:, method_name:)
              message = <<~TEXT
                Service #{service_class} tries to use `#{method_name}` method in a step, but it NOT defined.

                Did you forget to define it?
              TEXT

              super(message)
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.5.0 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result_method_steps/errors.rb