Parent

Methods

Class/Module Index [+]

Quicksearch

Mongoid::Errors::NoDefaultSession

This error is raised when a default session is not defined.

Public Class Methods

new(keys) click to toggle source

Create the new error with the defined session names.

@example Create the new error.

NoDefaultSession.new([ :secondary ])

@param [ Array<Symbol> ] keys The defined sessions.

@since 3.0.0

# File lib/mongoid/errors/no_default_session.rb, line 15
def initialize(keys)
  super(
    compose_message("no_default_session", { keys: keys.join(", ") })
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.