Exception: Buckaruby::NonRefundableTransactionException
- Inherits:
-
BuckarooException
- Object
- StandardError
- BuckarooException
- Buckaruby::NonRefundableTransactionException
- Defined in:
- lib/buckaruby/exception.rb
Overview
Exception raised when trying to refund a non refundable transaction.
Instance Attribute Summary collapse
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
Instance Method Summary collapse
-
#initialize(transaction_id) ⇒ NonRefundableTransactionException
constructor
A new instance of NonRefundableTransactionException.
Constructor Details
#initialize(transaction_id) ⇒ NonRefundableTransactionException
Returns a new instance of NonRefundableTransactionException.
77 78 79 80 81 82 |
# File 'lib/buckaruby/exception.rb', line 77 def initialize(transaction_id) @transaction_id = transaction_id = "Not a refundable transaction: #{transaction_id}" super() end |
Instance Attribute Details
#transaction_id ⇒ Object (readonly)
Returns the value of attribute transaction_id.
75 76 77 |
# File 'lib/buckaruby/exception.rb', line 75 def transaction_id @transaction_id end |