Exception: Makara::Errors::AllConnectionsBlacklisted
- Inherits:
-
StandardError
- Object
- StandardError
- Makara::Errors::AllConnectionsBlacklisted
- Defined in:
- lib/makara/errors/all_connections_blacklisted.rb
Instance Method Summary collapse
-
#initialize(pool, errors) ⇒ AllConnectionsBlacklisted
constructor
A new instance of AllConnectionsBlacklisted.
Constructor Details
#initialize(pool, errors) ⇒ AllConnectionsBlacklisted
Returns a new instance of AllConnectionsBlacklisted.
5 6 7 8 9 |
# File 'lib/makara/errors/all_connections_blacklisted.rb', line 5 def initialize(pool, errors) errors = [*errors] = errors.empty? ? 'No error details' : errors.map(&:message).join(' -> ') super "[Makara/#{pool.role}] All connections are blacklisted -> " + end |