Exception: Mongoid::Errors::InvalidPath

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-master/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

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initialize(klass) ⇒ InvalidPath

Create the new error.

Examples:

Create the error.

InvalidPath.new(Address)

Parameters:

  • klass (Class)

    The document class.

Since:

  • 3.0.14



18
19
20
# File 'build/mongoid-master/lib/mongoid/errors/invalid_path.rb', line 18

def initialize(klass)
  super(compose_message("invalid_path", { klass: klass }))
end