Class: Makara::Errors::AllConnectionsBlacklisted

Inherits:
MakaraError
  • Object
show all
Defined in:
lib/makara/errors/all_connections_blacklisted.rb

Instance Method Summary collapse

Constructor Details

#initialize(pool, errors) ⇒ AllConnectionsBlacklisted

Returns a new instance of AllConnectionsBlacklisted.



4
5
6
7
8
# File 'lib/makara/errors/all_connections_blacklisted.rb', line 4

def initialize(pool, errors)
  errors = [*errors]
  messages = errors.empty? ? 'No error details' : errors.map(&:message).join(' -> ')
  super "[Makara/#{pool.role}] All connections are blacklisted -> " + messages
end