Exception: Transactor::TransactionError
- Inherits:
-
StandardError
- Object
- StandardError
- Transactor::TransactionError
- Defined in:
- lib/transactor/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize(e, transaction) ⇒ TransactionError
constructor
A new instance of TransactionError.
Constructor Details
#initialize(e, transaction) ⇒ TransactionError
Returns a new instance of TransactionError.
21 22 23 24 25 |
# File 'lib/transactor/errors.rb', line 21 def initialize(e, transaction) super("#{e.class.name}: #{e.}") set_backtrace e.backtrace @transaction = transaction end |
Instance Attribute Details
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
19 20 21 |
# File 'lib/transactor/errors.rb', line 19 def transaction @transaction end |