Exception: Mongoid::Errors::InvalidPersistenceOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidPersistenceOption
- Defined in:
- build/mongoid-6.1/lib/mongoid/errors/invalid_persistence_option.rb
Overview
Raised when invalid options are used to create a persistence context.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(invalid, valid) ⇒ InvalidPersistenceOption
constructor
Instantiate the persistence context option error.
Methods inherited from MongoidError
Constructor Details
#initialize(invalid, valid) ⇒ InvalidPersistenceOption
Instantiate the persistence context option error.
19 20 21 22 23 24 25 26 |
# File 'build/mongoid-6.1/lib/mongoid/errors/invalid_persistence_option.rb', line 19 def initialize(invalid, valid) super( ( "invalid_persistence_option", { invalid: invalid, valid: valid } ) ) end |