class Mongo::Error::InvalidServerPreference

Raised when an invalid server preference is provided.

@since 2.0.0

Public Class Methods

new(name) click to toggle source

Instantiate the new exception.

@example Instantiate the exception.

Mongo::ServerSelector::InvalidServerPreference.new

@param [ String ] name The preference name.

@since 2.0.0

Calls superclass method
# File lib/mongo/error/invalid_server_preference.rb, line 31
def initialize(name)
  super("This server preference #{name} cannot be combined with tags.")
end