Class: Mongo::Error::UnchangeableCollectionOption
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| 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.
Class Method Summary
-
.new(option) ⇒ UnchangeableCollectionOption
constructor
Create the new exception.
Constructor Details
.new(option) ⇒ UnchangeableCollectionOption
Create the new exception.
# 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