Sha256: 3ee36e8b9c1bc34aa433e0386ea34ac565871ae5591c29abf3bd15cea43f728a

Contents?: true

Size: 690 Bytes

Versions: 25

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

module Mongoid
  module Errors

    # This error is raised when a client configuration contains both a uri and
    # other standard options.
    class MixedClientConfiguration < MongoidError

      # Initialize the error.
      #
      # @example Initialize the error.
      #   MixedClientConfiguration.new(:name, {})
      #
      # @param [ Symbol ] name The name of the client config.
      # @param [ Hash ] config The configuration options.
      def initialize(name, config)
        super(
          compose_message(
            "mixed_client_configuration",
            { name: name, config: config }
          )
        )
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mongoid-8.1.8 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.7 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.6 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.8 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.5 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.4 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.7 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.3 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.2 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.6 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-7.5.4 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.1 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.5 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.1.0 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-7.5.3 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.4 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.3 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-7.5.2 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-8.0.2 lib/mongoid/errors/mixed_client_configuration.rb
mongoid-7.5.1 lib/mongoid/errors/mixed_client_configuration.rb