Class: Mongo::Error::NoServiceConnectionAvailable
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/no_service_connection_available.rb |
Overview
Raised when the driver requires a connection to a particular service but no matching connections exist in the connection pool.
Class Method Summary
- .generate(address:, service_id:) Internal use only Internal use only
- .new(message, address:, service_id:) ⇒ NoServiceConnectionAvailable constructor Internal use only Internal use only
Instance Attribute Summary
- #address ⇒ Mongo::Address readonly
- #service_id ⇒ nil | Object readonly
Class Method Details
.generate(address:, service_id:)
This method is for internal use only.
# File 'lib/mongo/error/no_service_connection_available.rb', line 38
def self.generate(address:, service_id:) new( "The connection pool for #{address} does not have a connection for service #{service_id}", address: address, service_id: service_id ) end
Instance Attribute Details
#address ⇒ Mongo::Address (readonly)
# File 'lib/mongo/error/no_service_connection_available.rb', line 32
attr_reader :address
#service_id ⇒ nil | Object (readonly)
# File 'lib/mongo/error/no_service_connection_available.rb', line 35
attr_reader :service_id