Sha256: 0d5517cafcdabf59be4e905090e5cf5150e03f24545f93d541450396a8924bc3

Contents?: true

Size: 639 Bytes

Versions: 59

Compression:

Stored size: 639 Bytes

Contents

# encoding: utf-8
module Mongoid
  module Errors

    # This error is raised when a client is configured without hosts.
    class NoClientHosts < MongoidError

      # Create the new error.
      #
      # @example Create the new error.
      #   NoClientHosts.new(:default, {}})
      #
      # @param [ Symbol, String ] name The db config key.
      # @param [ Hash ] config The hash configuration options.
      #
      # @since 3.0.0
      def initialize(name, config)
        super(
          compose_message(
            "no_client_hosts",
            { name: name, config: config }
          )
        )
      end
    end
  end
end

Version data entries

59 entries across 55 versions & 3 rubygems

Version Path
mongoid-7.0.13 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.12 lib/mongoid/errors/no_client_hosts.rb
mongoid-6.4.8 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.11 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.10 lib/mongoid/errors/no_client_hosts.rb
mongoid-6.4.7 lib/mongoid/errors/no_client_hosts.rb
mongoid-6.4.5 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.8 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.7 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.6 lib/mongoid/errors/no_client_hosts.rb
mongoid-5.4.1 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.5 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.4 lib/mongoid/errors/no_client_hosts.rb
mongoid-6.4.4 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.3 lib/mongoid/errors/no_client_hosts.rb
mongoid-6.4.2 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.2 lib/mongoid/errors/no_client_hosts.rb
mongoid-7.0.1 lib/mongoid/errors/no_client_hosts.rb
mongoid-6.4.1 lib/mongoid/errors/no_client_hosts.rb
mongoid-5.4.0 lib/mongoid/errors/no_client_hosts.rb