Exception: Mongo::Error::InvalidServerPreference
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::InvalidServerPreference
- Defined in:
- lib/mongo/error/invalid_server_preference.rb
Overview
Raised when an invalid server preference is provided.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Method Summary collapse
-
#initialize(name) ⇒ InvalidServerPreference
constructor
Instantiate the new exception.
Constructor Details
#initialize(name) ⇒ InvalidServerPreference
Instantiate the new exception.
31 32 33 |
# File 'lib/mongo/error/invalid_server_preference.rb', line 31 def initialize(name) super("This server preference #{name} cannot be combined with tags.") end |