Method: Mongo::Error::InvalidConfigOption#initialize

Defined in:
lib/mongo/error/invalid_config_option.rb

#initialize(name) ⇒ InvalidConfigOption

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the new error.

Parameters:

  • name (Symbol, String)

    The attempted config option name.

Since:

  • 2.0.0



16
17
18
# File 'lib/mongo/error/invalid_config_option.rb', line 16

def initialize(name)
  super("Invalid config option #{name}.")
end