Exception: Mongoid::Errors::NoParent
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoParent
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/no_parent.rb
Overview
This error is raised when trying to persist an embedded document when there is no parent set.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass) ⇒ NoParent
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass) ⇒ NoParent
Create the new error.
19 20 21 22 23 |
# File 'build/mongoid-7.3/lib/mongoid/errors/no_parent.rb', line 19 def initialize(klass) super( ("no_parent", { klass: klass }) ) end |