Sha256: 24cd5a4a87a7fc01a9ab95de7c288af1a38e405002a35469868b67ddb9b69605
Contents?: true
Size: 684 Bytes
Versions: 27
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # This error is raised when a client is configured without a database. class NoClientDatabase < MongoidError # Create the new error. # # @example Create the new error. # NoClientDatabase.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_database", { name: name, config: config } ) ) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems