Method: Mongo::Error::InvalidWriteConcern#initialize
- Defined in:
- lib/mongo/error/invalid_write_concern.rb
#initialize(msg = nil) ⇒ InvalidWriteConcern
Instantiate the new exception.
32 33 34 35 |
# File 'lib/mongo/error/invalid_write_concern.rb', line 32 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 |