class Mongoid::Errors::MixedClientConfiguration
This error is raised when a client configuration contains both a uri and other standard options.
Public Class Methods
new(name, config)
click to toggle source
Initialize the error.
@example Initialize the error.
MixedClientConfiguration.new(:name, {})
@param [ Symbol ] name The name of the client config. @param [ Hash ] config The configuration options.
@since 3.0.0
Calls superclass method
# File lib/mongoid/errors/mixed_client_configuration.rb, line 20 def initialize(name, config) super( compose_message( "mixed_client_configuration", { name: name, config: config } ) ) end