Class: Mongo::Error::InvalidReadOption
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::InvalidReadOption
- 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.
Instance Method Summary collapse
-
#initialize(_read_option, msg) ⇒ InvalidReadOption
constructor
Instantiate the new exception.
Constructor Details
#initialize(_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.
37 38 39 |
# File 'lib/mongo/error/invalid_read_option.rb', line 37 def initialize(_read_option, msg) super("Invalid read preference value: #{msg}") end |