Sha256: a1c0667c864ddd44cee26f375a3c81b6bbf969779666e6d07945caa03af9407f

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasJSendResultShortSyntax
        module Success
          module Exceptions
            class KwargsContainDataAndExtraKeys < ::ConvenientService::Exception
              def initialize
                message = <<~TEXT
                  `kwargs` passed to `success` method contain `data` and extra keys. That's NOT allowed.

                  Please, consider something like:

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convenient_service-0.13.0 lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/exceptions.rb