Sha256: ea2183fe8e6ac5c296c1ec5e4733a589967988bf2851274af0dc478517a620c1

Contents?: true

Size: 526 Bytes

Versions: 27

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

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.
      def initialize(name)
        super(compose_message("no_client_config", { name: name }))
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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