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