123456789_123456789_123456789_123456789_123456789_

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.

Since:

  • 2.9.0

Class Method Summary

PoolError - Inherited

.new

Instantiate the new exception.

Instance Attribute Summary

PoolError - Inherited

#address

pool's connections connect to.

#pool

Constructor Details

.new(address, pool) ⇒ PoolClosedError

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::PoolClosedError.new(address, pool)

Since:

  • 2.9.0

[ GitHub ]

  
# 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