123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidConfigOption

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
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

Class Method Summary

Constructor Details

.new(name) ⇒ InvalidConfigOption

Create the new error.

Parameters:

  • name (Symbol, String)

    The attempted config option name.

Since:

  • 2.0.0

[ GitHub ]

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

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