Exception: Mongoid::Errors::InvalidPersistenceOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidPersistenceOption
- Defined in:
- build/mongoid-7.3/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.
21 22 23 24 25 26 27 28 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_persistence_option.rb', line 21 def initialize(invalid, valid) super( ( "invalid_persistence_option", { invalid: invalid, valid: valid } ) ) end |