Class: Mongo::Error::PoolClosedError
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
PoolError,
Error
|
|
|
Instance Chain:
self,
PoolError,
Error
|
|
| Inherits: |
Mongo::Error::PoolError
|
| Defined in: | lib/mongo/error/pool_closed_error.rb |
Overview
Exception raised if an operation is attempted on a closed connection pool.
Class Method Summary
-
.new(address, pool) ⇒ PoolClosedError
constructor
Internal use only
Instantiate the new exception.
PoolError - Inherited
| .new | Instantiate the new exception. |
Instance Attribute Summary
Constructor Details
.new(address, pool) ⇒ PoolClosedError
Instantiate the new exception.
# File 'lib/mongo/error/pool_closed_error.rb', line 30
def initialize(address, pool) super(address, pool, "Attempted to use a connection pool which has been closed (for #{address} " + "with pool 0x#{pool.object_id})") end