Sha256: 870f0f3f4fde7710228c1f54d4e00520309e9c007655256f30409d5652024c0a

Contents?: true

Size: 694 Bytes

Versions: 15

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultShortSyntax
        module Failure
          module Errors
            class KwargsContainDataAndExtraKeys < ::ConvenientService::Error
              def initialize
                message = <<~TEXT
                  `kwargs` passed to `failure` method contain `data` and extra keys. That's NOT allowed.

                  Please, consider something like:

                  failure(foo: :bar)
                  failure(data: {foo: :bar})
                TEXT

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.10.1 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.5.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb