class Mongoid::Errors::NoClientConfig

This error is raised when attempting to create a new client that does not have a named configuration.

Public Class Methods

new(name) click to toggle source

Create the new error.

@example Create the error.

NoClientConfig.new(:analytics)

@param [ String | Symbol ] name The name of the client.

@since 3.0.0

Calls superclass method
# File lib/mongoid/errors/no_client_config.rb, line 19
def initialize(name)
  super(compose_message("no_client_config", { name: name }))
end