class Mongo::Error::PoolClosedError
Exception raised if an operation is attempted on a closed connection pool.
@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)
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::PoolClosedError.new(address)
@since 2.9.0 @api private
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/pool_closed_error.rb, line 36 def initialize(address) @address = address super("Attempted to use a connection pool which has been closed (for #{address})") end