class Mongoid::Errors::NoClientDatabase
This error is raised when a client is configured without a database.
def initialize(name, config)
-
config(Hash) -- The hash configuration options. -
name(Symbol | String) -- The db config key.
Other tags:
- Example: Create the new error. -
def initialize(name, config) super( compose_message( "no_client_database", { name: name, config: config } ) ) end