Class: Mongo::Error::InvalidReadConcern

Inherits:
Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_read_concern.rb

Overview

Raised when an invalid read concern is provided.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ InvalidReadConcern

Instantiate the new exception.

Since:

  • 2.0.0



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