Class: Makara::Errors::NoConnectionsAvailable
- Inherits:
-
MakaraError
- Object
- ActiveRecord::ActiveRecordError
- MakaraError
- Makara::Errors::NoConnectionsAvailable
- Defined in:
- lib/makara/errors/no_connections_available.rb
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(role) ⇒ NoConnectionsAvailable
constructor
A new instance of NoConnectionsAvailable.
Constructor Details
#initialize(role) ⇒ NoConnectionsAvailable
Returns a new instance of NoConnectionsAvailable.
6 7 8 9 |
# File 'lib/makara/errors/no_connections_available.rb', line 6 def initialize(role) @role = role super "[Makara] No connections are available in the #{role} pool" end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
4 5 6 |
# File 'lib/makara/errors/no_connections_available.rb', line 4 def role @role end |