类:Mongo::Error::PoolError
- 继承:
-
错误
- 对象
- 错误
- Mongo::Error::PoolError
- 定义于:
- lib/ Mongo/error/pool_error.rb
Overview
连接池相关异常的抽象基类。
直接已知子类
实例属性摘要折叠
-
#地址⇒ Mongo::Address
只读
池的连接连接到。
-
#池⇒ Mongo::Server::ConnectionPool
只读
池连接池。
实例方法摘要折叠
-
#初始化(解决, 池 , 消息 ) ="PoolError
构造函数
private
实例化新异常。
构造函数详情
#初始化(解决, 池 , 消息 ) ="PoolError
此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。
实例化新异常。
35 36 37 38 39 |
# File 'lib/ Mongo/error/pool_error.rb', line 35 def 初始化(地址, 池, ) @address = 地址 @pool = 池 超() end |
实例属性详细信息
#地址⇒ Mongo::Address (readonly)
池的连接连接到。
25 26 27 |
# File 'lib/ Mongo/error/pool_error.rb', line 25 def 地址 @address end |
#池⇒ Mongo::Server::ConnectionPool (只读)
返回 池 连接池。
30 31 32 |
# File 'lib/ Mongo/error/pool_error.rb', line 30 def 池 @pool end |