Exception: BSV::Wallet::InsufficientFundsError

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

Overview

Code 5 — wallet has insufficient funds for the requested operation.

Instance Attribute Summary

Attributes inherited from Error

#code, #wallet_stack

Instance Method Summary collapse

Methods inherited from Error

#to_wire

Constructor Details

#initialize(message = 'insufficient funds', stack: '') ⇒ InsufficientFundsError

Returns a new instance of InsufficientFundsError.



46
47
48
# File 'lib/bsv/wallet/errors.rb', line 46

def initialize(message = 'insufficient funds', stack: '')
  super(message, code: 5, stack: stack)
end