class Mongo::Error::PoolPausedError

Exception raised if an operation is attempted on a paused connection pool.

Public Class Methods

new(address, pool) click to toggle source

Instantiate the new exception.

@example Instantiate the exception.

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

@since 2.9.0 @api private

Calls superclass method Mongo::Error::PoolError.new
# File lib/mongo/error/pool_paused_error.rb, line 32
def initialize(address, pool)
  super(address, pool,
    "Attempted to use a connection pool which is paused (for #{address} " +
      "with pool 0x#{pool.object_id})")
end