class Mongo::Error::InvalidReadConcern
Raised when an invalid read concern is provided.
Public Class Methods
new(msg = nil)
click to toggle source
Instantiate the new exception.
Calls superclass method
Mongo::Error.new
# File lib/mongo/error/invalid_read_concern.rb, line 23 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