Exception: Mongo::Error::InvalidWriteConcern
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::InvalidWriteConcern
- Defined in:
- lib/mongo/error/invalid_write_concern.rb
Overview
Raised when an invalid write concern is provided.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Method Summary collapse
-
#initialize ⇒ InvalidWriteConcern
constructor
Instantiate the new exception.
Constructor Details
#initialize ⇒ InvalidWriteConcern
Instantiate the new exception.
29 30 31 32 |
# File 'lib/mongo/error/invalid_write_concern.rb', line 29 def initialize super('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 |