Sha256: e786848b7e0fc161c3a4378f4321add798d7405a9d40cf7ace3c2b30d03c0bc3
Contents?: true
Size: 670 Bytes
Versions: 27
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true # 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
27 entries across 27 versions & 2 rubygems