Class: Mongo::Error::InvalidReadConcern
| 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_concern.rb |
Overview
Raised when an invalid read concern is provided.
Class Method Summary
-
.new(msg = nil) ⇒ InvalidReadConcern
constructor
Instantiate the new exception.
Constructor Details
.new(msg = nil) ⇒ InvalidReadConcern
Instantiate the new exception.
# 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