123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidReadConcern

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/invalid_read_concern.rb

Overview

Raised when an invalid read concern is provided.

Since:

  • 2.0.0

Class Method Summary

Constructor Details

.new(msg = nil) ⇒ InvalidReadConcern

Instantiate the new exception.

Since:

  • 2.0.0

[ GitHub ]

  
# 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