Class: Mongo::Error::InvalidReadConcern
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::InvalidReadConcern
- Defined in:
- lib/mongo/error/invalid_read_concern.rb
Overview
Raised when an invalid read concern is provided.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ InvalidReadConcern
constructor
Instantiate the new exception.
Constructor Details
#initialize(msg = nil) ⇒ InvalidReadConcern
Instantiate the new exception.
22 23 24 25 26 |
# File 'lib/mongo/error/invalid_read_concern.rb', line 22 def initialize(msg = nil) super(msg || 'Invalid read concern option provided.' \ 'The only valid key is :level, for which accepted values are' \ ':local, :majority, and :snapshot') end |