Class: Makara::Errors::AllConnectionsBlacklisted
- Inherits:
-
MakaraError
- Object
- ActiveRecord::ActiveRecordError
- MakaraError
- 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.
4 5 6 7 8 |
# File 'lib/makara/errors/all_connections_blacklisted.rb', line 4 def initialize(pool, errors) errors = [*errors] = errors.empty? ? 'No error details' : errors.map(&:message).join(' -> ') super "[Makara/#{pool.role}] All connections are blacklisted -> " + end |