Exception: Makara::Errors::NoConnectionsAvailable

Inherits:
StandardError
  • Object
show all
Defined in:
lib/makara/errors/no_connections_available.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role) ⇒ NoConnectionsAvailable

Returns a new instance of NoConnectionsAvailable.



7
8
9
10
# File 'lib/makara/errors/no_connections_available.rb', line 7

def initialize(role)
  @role = role
  super "[Makara] No connections are available in the #{role} pool"
end

Instance Attribute Details

#roleObject (readonly)

Returns the value of attribute role.



5
6
7
# File 'lib/makara/errors/no_connections_available.rb', line 5

def role
  @role
end