Exception: PolarLoop::TransactionFailedError

Inherits:
Error
  • Object
show all
Defined in:
lib/polarloop/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, tx_hash: nil, receipt: nil) ⇒ TransactionFailedError

Returns a new instance of TransactionFailedError.



32
33
34
35
36
# File 'lib/polarloop/errors.rb', line 32

def initialize(message, tx_hash: nil, receipt: nil)
  @tx_hash = tx_hash
  @receipt = receipt
  super(message)
end

Instance Attribute Details

#receiptObject (readonly)

Returns the value of attribute receipt.



30
31
32
# File 'lib/polarloop/errors.rb', line 30

def receipt
  @receipt
end

#tx_hashObject (readonly)

Returns the value of attribute tx_hash.



30
31
32
# File 'lib/polarloop/errors.rb', line 30

def tx_hash
  @tx_hash
end