Exception: Mongoid::Errors::InverseNotFound
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InverseNotFound
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/inverse_not_found.rb
Overview
Raised when no inverse_of definition can be found when needed.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(base, name, klass, inverse) ⇒ InverseNotFound
constructor
Create then new error.
Methods inherited from MongoidError
Constructor Details
#initialize(base, name, klass, inverse) ⇒ InverseNotFound
Create then new error.
21 22 23 24 25 26 27 28 |
# File 'build/mongoid-7.3/lib/mongoid/errors/inverse_not_found.rb', line 21 def initialize(base, name, klass, inverse) super( ( "inverse_not_found", { base: base, name: name, klass: klass, inverse: inverse } ) ) end |