Exception: Buckaruby::NonCancellableTransactionException

Inherits:
BuckarooException
  • Object
show all
Defined in:
lib/buckaruby/exception.rb

Overview

Exception raised when trying to cancel a non cancellable transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transaction_id) ⇒ NonCancellableTransactionException

Returns a new instance of NonCancellableTransactionException.



89
90
91
92
93
94
# File 'lib/buckaruby/exception.rb', line 89

def initialize(transaction_id)
  @transaction_id = transaction_id

  message = "Not a cancellable transaction: #{transaction_id}"
  super(message)
end

Instance Attribute Details

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



87
88
89
# File 'lib/buckaruby/exception.rb', line 87

def transaction_id
  @transaction_id
end