Sha256: daf028f3d7999f96583ee3227a47a5fcfcf815c95b0d58466992119a5e6c8c2f
Contents?: true
Size: 637 Bytes
Versions: 9
Compression:
Stored size: 637 Bytes
Contents
# frozen_string_literal: true 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. def initialize(name, config) super( compose_message( "no_client_database", { name: name, config: config } ) ) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems