Class: Mongo::Error::InvalidWriteConcern
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/invalid_write_concern.rb |
Overview
Raised when an invalid write concern is provided.
Class Method Summary
-
.new(msg = nil) ⇒ InvalidWriteConcern
constructor
Instantiate the new exception.
Constructor Details
.new(msg = nil) ⇒ InvalidWriteConcern
Instantiate the new exception.
# 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