123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::InvalidWriteConcern

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/invalid_write_concern.rb

Overview

Raised when an invalid write concern is provided.

Since:

  • 2.2.0

Class Method Summary

Constructor Details

.new(msg = nil) ⇒ InvalidWriteConcern

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::InvalidWriteConcern.new

Since:

  • 2.2.0

[ GitHub ]

  
# 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