This error is raised when a session is configured without hosts.
Create the new error.
@example Create the new error.
NoSessionHosts.new(:default, {}})
@param [ Symbol, String ] name The db config key. @param [ Hash ] config The hash configuration options.
@since 3.0.0
# File lib/mongoid/errors/no_session_hosts.rb, line 16 def initialize(name, config) super( compose_message( "no_session_hosts", { name: name, config: config } ) ) end