Sha256: d8c1f9396a3a855cd84c021f88a8f3de11cca9a92bc062deeb48f24d2401919e

Contents?: true

Size: 573 Bytes

Versions: 23

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module Mongoid
  module Errors

    # This error is raised when attempting to create a new client that does
    # not have a named configuration.
    class NoClientConfig < MongoidError

      # Create the new error.
      #
      # @example Create the error.
      #   NoClientConfig.new(:analytics)
      #
      # @param [ String | Symbol ] name The name of the client.
      #
      # @since 3.0.0
      def initialize(name)
        super(compose_message("no_client_config", { name: name }))
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
mongoid-7.3.5 lib/mongoid/errors/no_client_config.rb
mongoid-7.3.4 lib/mongoid/errors/no_client_config.rb
mongoid-7.1.11 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.6 lib/mongoid/errors/no_client_config.rb
mongoid-7.3.3 lib/mongoid/errors/no_client_config.rb
mongoid-7.3.2 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.5 lib/mongoid/errors/no_client_config.rb
mongoid-7.1.10 lib/mongoid/errors/no_client_config.rb
mongoid-7.1.9 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.4 lib/mongoid/errors/no_client_config.rb
mongoid-7.3.1 lib/mongoid/errors/no_client_config.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/mongoid-7.1.7/lib/mongoid/errors/no_client_config.rb
mongoid-7.3.0 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.3 lib/mongoid/errors/no_client_config.rb
mongoid-7.1.8 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.2 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.1 lib/mongoid/errors/no_client_config.rb
mongoid-7.1.7 lib/mongoid/errors/no_client_config.rb
mongoid-7.2.0 lib/mongoid/errors/no_client_config.rb
mongoid-7.1.6 lib/mongoid/errors/no_client_config.rb