Class: BSV::Wallet::LimpModeError
- Inherits:
-
Error
- Object
- Error
- BSV::Wallet::LimpModeError
- Defined in:
- lib/bsv/wallet/errors.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#initialize(balance:, threshold:) ⇒ LimpModeError
constructor
A new instance of LimpModeError.
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
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
34 35 36 |
# File 'lib/bsv/wallet/errors.rb', line 34 def balance @balance end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
34 35 36 |
# File 'lib/bsv/wallet/errors.rb', line 34 def threshold @threshold end |