Class: Mongo::Error::InvalidConfigOption

Inherits:
Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_config_option.rb

Overview

This error is raised when a bad configuration option is attempted to be set.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#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



13
14
15
# File 'lib/mongo/error/invalid_config_option.rb', line 13

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