Exception: Mongoid::Errors::InvalidPath
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidPath
- Defined in:
- lib/mongoid/errors/invalid_path.rb
Overview
Used when attempting to get embedded paths with incorrect root path set.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(klass) ⇒ InvalidPath
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass) ⇒ InvalidPath
Create the new error.
16 17 18 |
# File 'lib/mongoid/errors/invalid_path.rb', line 16 def initialize(klass) super(("invalid_path", { klass: klass })) end |