Exception: Makara::Errors::AllConnectionsBlacklisted

Inherits:
StandardError
  • 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.



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

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