Class: Mongo::Error::PoolError
- Inherits:
-
Error
- Object
- Error
- Mongo::Error::PoolError
- Defined in:
- lib/mongo/error/pool_error.rb
Overview
Abstract base class for connection pool-related exceptions.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#address ⇒ Mongo::Address
readonly
pool's connections connect to.
-
#pool ⇒ Mongo::Server::ConnectionPool
readonly
Pool The connection pool.
Instance Method Summary collapse
-
#initialize(address, pool, message) ⇒ PoolError
constructor
private
Instantiate the new exception.
Constructor Details
#initialize(address, pool, message) ⇒ PoolError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate the new exception.
35 36 37 38 39 |
# File 'lib/mongo/error/pool_error.rb', line 35 def initialize(address, pool, ) @address = address @pool = pool super() end |
Instance Attribute Details
#address ⇒ Mongo::Address (readonly)
pool's connections connect to.
25 26 27 |
# File 'lib/mongo/error/pool_error.rb', line 25 def address @address end |
#pool ⇒ Mongo::Server::ConnectionPool (readonly)
Returns pool The connection pool.
30 31 32 |
# File 'lib/mongo/error/pool_error.rb', line 30 def pool @pool end |