异常:Mongoid::Errors::NoParent
- 继承:
-
MongoidError
- 对象
- StandardError
- MongoidError
- Mongoid::Errors::NoParent
- 定义于:
- lib/mongoid/errors/no_parent.rb
Overview
在没有父文档设立的情况下尝试保留嵌入式文档时,会出现此错误。
常量摘要
从MongoidError继承的常量
实例属性摘要
从MongoidError继承的属性
实例方法摘要折叠
-
#initialize(klass) ⇒ NoParent
构造函数
创建新的错误。
从MongoidError继承的方法
构造函数详情
#initialize(klass) ⇒ NoParent
创建新的错误。
17 18 19 20 21 |
# File 'lib/mongoid/errors/no_parent.rb', line 17 def 初始化(klass) 超( (" no_parent ", { 类: klass }) ) end |