class Mongo::Error::UnchangeableCollectionOption
Raised if a new collection is created from an existing one and options other than the changeable ones are provided.
@since 2.1.0
Public Class Methods
new(option)
click to toggle source
Create the new exception.
@example Create the new exception.
Mongo::Error::UnchangeableCollectionOption.new(option)
@param [ String, Symbol
] option The option that was attempted to be changed.
@since 2.1.0
Calls superclass method
Mongo::Error::new
# 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