Class: BSV::Wallet::LimpModeError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(balance:, threshold:) ⇒ LimpModeError

Returns a new instance of LimpModeError.



36
37
38
39
40
41
# File 'lib/bsv/wallet/errors.rb', line 36

def initialize(balance:, threshold:)
  @balance = balance
  @threshold = threshold
  super("wallet is in limp mode: balance #{balance} sats is below " \
        "operating threshold #{threshold} sats — receive funds to restore normal operations")
end

Instance Attribute Details

#balanceObject (readonly)

Returns the value of attribute balance.



34
35
36
# File 'lib/bsv/wallet/errors.rb', line 34

def balance
  @balance
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



34
35
36
# File 'lib/bsv/wallet/errors.rb', line 34

def threshold
  @threshold
end