Sha256: 5f78ebf6201627c21aab238ac7a42cfdb664df0e5d9e5d64e18d6df47ad0c987

Contents?: true

Size: 541 Bytes

Versions: 59

Compression:

Stored size: 541 Bytes

Contents

# 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(:secondary)
      #
      # @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

59 entries across 55 versions & 3 rubygems

Version Path
tdiary-5.0.8 vendor/bundle/gems/mongoid-6.4.0/lib/mongoid/errors/no_client_config.rb
mongoid-7.0.0 lib/mongoid/errors/no_client_config.rb
mongoid-6.4.0 lib/mongoid/errors/no_client_config.rb
mongoid-6.3.0 lib/mongoid/errors/no_client_config.rb
mongoid-6.2.1 lib/mongoid/errors/no_client_config.rb
mongoid-7.0.0.beta lib/mongoid/errors/no_client_config.rb
tdiary-5.0.5 vendor/bundle/gems/mongoid-6.1.0/lib/mongoid/errors/no_client_config.rb
tdiary-5.0.5 vendor/bundle/gems/mongoid-6.2.0/lib/mongoid/errors/no_client_config.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/mongoid-6.1.0/lib/mongoid/errors/no_client_config.rb
mongoid-6.2.0 lib/mongoid/errors/no_client_config.rb
mongoid-6.1.1 lib/mongoid/errors/no_client_config.rb
mongoid-5.2.1 lib/mongoid/errors/no_client_config.rb
tdiary-5.0.4 vendor/bundle/gems/mongoid-6.1.0/lib/mongoid/errors/no_client_config.rb
mongoid-6.1.0 lib/mongoid/errors/no_client_config.rb
mongoid-5.2.0 lib/mongoid/errors/no_client_config.rb
mongoid-5.2.0.rc0 lib/mongoid/errors/no_client_config.rb
mongoid-6.1.0.rc0 lib/mongoid/errors/no_client_config.rb
mongoid-6.0.3 lib/mongoid/errors/no_client_config.rb
mongoid-5.1.6 lib/mongoid/errors/no_client_config.rb
mongoid-6.0.2 lib/mongoid/errors/no_client_config.rb