Class: Mongo::Error::InvalidReadOption
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/invalid_read_option.rb |
Overview
Exception that is raised when trying to create a client with an invalid read option.
Class Method Summary
-
.new(_read_option, msg) ⇒ InvalidReadOption
constructor
Instantiate the new exception.
Constructor Details
.new(_read_option, msg) ⇒ InvalidReadOption
Instantiate the new exception.
The value is not included in the message: it may come from the connection string and can contain text the user intended as a credential.
# File 'lib/mongo/error/invalid_read_option.rb', line 37
def initialize(_read_option, msg) super("Invalid read preference value: #{msg}") end