Exception: Mongo::Error::InvalidWriteConcern

Inherits:
Mongo::Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_write_concern.rb

Overview

Raised when an invalid write concern is provided.

Since:

  • 2.2.0

Constant Summary

Constants inherited from Mongo::Error

BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, UNKNOWN_ERROR, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS

Instance Method Summary collapse

Constructor Details

#initializeInvalidWriteConcern

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::InvalidWriteConcern.new

Since:

  • 2.2.0



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