类:Mongo::Error::ServerNotUsable
- 继承:
-
错误
- 对象
- 错误
- Mongo::Error::ServerNotUsable
- 定义于:
- lib/ Mongo/error/server_not_usable.rb
Overview
如果尝试使用未知服务器进行操作,则会引发异常。
实例方法摘要折叠
-
#initialize (解决) ⇒ ServerNotUsable
构造函数
private
实例化新异常。
构造函数详情
#initialize (address) ⇒ ServerNotUsable
此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。
实例化新异常。
28 29 30 31 |
# File 'lib/ Mongo/error/server_not_usable.rb', line 28 def 初始化(地址) @address = 地址 超("尝试使用服务器#{ 解决 }的未知服务器") end |