Class: Mongo::Error::ConnectionCheckOutTimeout
- Inherits:
-
Timeout::Error
- Object
- Timeout::Error
- Mongo::Error::ConnectionCheckOutTimeout
- Defined in:
- lib/mongo/error/connection_check_out_timeout.rb
Overview
Note:
For backwards compatibility reasons this class derives from Timeout::Error rather than Mongo::Error.
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.
Instance Attribute Summary collapse
-
#address ⇒ Mongo::Address
readonly
Address The address of the server the pool’s connections connect to.
Instance Method Summary collapse
-
#initialize(msg, options) ⇒ ConnectionCheckOutTimeout
constructor
private
Instantiate the new exception.
Constructor Details
#initialize(msg, options) ⇒ ConnectionCheckOutTimeout
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate the new exception.
42 43 44 45 46 47 48 |
# File 'lib/mongo/error/connection_check_out_timeout.rb', line 42 def initialize(msg, ) super(msg) @address = [:address] unless @address raise ArgumentError, 'Address argument is required' end end |
Instance Attribute Details
#address ⇒ Mongo::Address (readonly)
Returns address The address of the server the pool’s connections connect to.
35 36 37 |
# File 'lib/mongo/error/connection_check_out_timeout.rb', line 35 def address @address end |