异常:Mongoid::Errors::NoClientHosts
- 继承:
-
MongoidError
- 对象
- StandardError
- MongoidError
- Mongoid::Errors::NoClientHosts
- 定义于:
- lib/mongoid/errors/no_client_hosts.rb
Overview
当客户端配置为没有主机时,会出现此错误。
常量摘要
从MongoidError继承的常量
实例属性摘要
从MongoidError继承的属性
实例方法摘要折叠
-
#initialize (name, config) ⇒ NoClientHosts
构造函数
创建新的错误。
从MongoidError继承的方法
构造函数详情
#initialize (name, config) ⇒ NoClientHosts
创建新的错误。
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/no_client_hosts.rb', line 17 def 初始化(名称, config) 超( ( " no_client_hosts ", { 名称: 名称, 配置: config } ) ) end |