class Mongoid::Errors::NoSessionConfig
This error is raised when attempting to create a new session that does not have a named configuration.
Public Class Methods
new(name)
click to toggle source
Create the new error.
@example Create the error.
NoSessionConfig.new(:secondary)
@param [ String, Symbol ] name The name of the session.
@since 3.0.0
Calls superclass method
# File lib/mongoid/errors/no_session_config.rb, line 16 def initialize(name) super(compose_message("no_session_config", { name: name })) end