class Mongo::Error::InvalidWriteConcern
Raised when an invalid write concern is provided.
@since 2.2.0
Public Class Methods
new(msg = nil)
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::InvalidWriteConcern.new
@since 2.2.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_write_concern.rb, line 29 def initialize(msg = nil) super(msg || 'Invalid write concern options. If w is an Integer, it must be greater than or equal to 0. ' + 'If w is 0, it cannot be combined with a true value for fsync or j (journal).') end