Exception: Mongo::Error::UnchangeableCollectionOption
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::UnchangeableCollectionOption
- Defined in:
- lib/mongo/error/unchangeable_collection_option.rb
Overview
Raised if a new collection is created from an existing one and options other than the changeable ones are 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(option) ⇒ UnchangeableCollectionOption
constructor
Create the new exception.
Constructor Details
#initialize(option) ⇒ UnchangeableCollectionOption
Create the new exception.
32 33 34 35 |
# File 'lib/mongo/error/unchangeable_collection_option.rb', line 32 def initialize(option) super("The option #{option} cannot be set on a new collection instance." + " The options that can be updated are #{Collection::CHANGEABLE_OPTIONS}") end |