class Mongo::Error::ConnectionCheckOutTimeout

Exception raised when trying to check out a connection from a connection pool, the pool is at its max size and no connections become available within the configured wait timeout.

@note For backwards compatibility reasons this class derives from

Timeout::Error rather than Mongo::Error.

@since 2.9.0

Attributes

address[R]

@return [ Mongo::Address ] address The address of the server the

pool's connections connect to.

@since 2.9.0

Public Class Methods

new(address, wait_timeout) click to toggle source

Instantiate the new exception.

@param [ Address ] address @param [ Float ] wait_timeout

@since 2.9.0 @api private

Calls superclass method
# File lib/mongo/error/connection_check_out_timeout.rb, line 41
def initialize(address, wait_timeout)
  @address = address

  super("Timed out when attempting to check out a connection from pool with address " +
          "#{address} after #{wait_timeout} sec")
end