class Mongo::Error::InvalidReadOption
Exception that is raised when trying to create a client with an invalid
read option.
@since 2.6.0
Public Class Methods
new(read_option, msg)
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::InvalidReadOption.new({:mode => 'bogus'})
@since 2.6.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_read_option.rb, line 30 def initialize(read_option, msg) super("Invalid read option: #{read_option}: #{msg}") end