异常:Mongoid::Errors::NoClientConfig
- 继承:
-
MongoidError
- 对象
- StandardError
- MongoidError
- Mongoid::Errors::NoClientConfig
- 定义于:
- lib/mongoid/errors/no_client_config.rb
Overview
尝试创建没有命名配置的新客户端时,会引发此错误。
常量摘要
从MongoidError继承的常量
实例属性摘要
从MongoidError继承的属性
实例方法摘要折叠
-
#initialize (name) ⇒ NoClientConfig
构造函数
创建新的错误。
从MongoidError继承的方法
构造函数详情
#initialize (name) ⇒ NoClientConfig
创建新的错误。
17 18 19 |
# File 'lib/mongoid/errors/no_client_config.rb', line 17 def 初始化(名称) 超(("no_client_config", { 名称: 名称 })) end |