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(msg, options)
click to toggle source
Instantiate the new exception.
@option options [ Address
] :address
@api private
Calls superclass method
# File lib/mongo/error/connection_check_out_timeout.rb, line 39 def initialize(msg, options) super(msg) @address = options[:address] unless @address raise ArgumentError, 'Address argument is required' end end