Class: Mongo::Error::InvalidWriteConcern
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::InvalidWriteConcern
- Defined in:
- lib/mongo/error/invalid_write_concern.rb
Overview
Raised when an invalid write concern is provided.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ InvalidWriteConcern
constructor
Instantiate the new exception.
Constructor Details
#initialize(msg = nil) ⇒ InvalidWriteConcern
Instantiate the new exception.
29 30 31 32 |
# 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 |