Method: Mongo::Error::UnchangeableCollectionOption#initialize
- Defined in:
- lib/mongo/error/unchangeable_collection_option.rb
#initialize(option) ⇒ UnchangeableCollectionOption
Create the new exception.
35 36 37 38 |
# File 'lib/mongo/error/unchangeable_collection_option.rb', line 35 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 |