# encoding: utf-8 module Mongoid module Errors # This error is raised when a session configuration contains both a uri and # other standard options. class MixedSessionConfiguration < MongoidError # Initialize the error. # # @example Initialize the error. # MixedSessionConfiguration.new(:name, {}) # # @param [ Symbol ] name The name of the session config. # @param [ Hash ] config The configuration options. # # @since 3.0.0 def initialize(name, config) super( compose_message( "mixed_session_configuration", { name: name, config: config } ) ) end end end end