Exception: BSV::Wallet::InsufficientFundsError
- Inherits:
-
StandardError
- Object
- StandardError
- BSV::Wallet::InsufficientFundsError
- Defined in:
- lib/bsv/wallet/insufficient_funds_error.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
Instance Method Summary collapse
-
#initialize(message = nil, required: nil, available: nil) ⇒ InsufficientFundsError
constructor
A new instance of InsufficientFundsError.
Constructor Details
#initialize(message = nil, required: nil, available: nil) ⇒ InsufficientFundsError
Returns a new instance of InsufficientFundsError.
8 9 10 11 12 |
# File 'lib/bsv/wallet/insufficient_funds_error.rb', line 8 def initialize( = nil, required: nil, available: nil) @required = required @available = available super( || "insufficient funds: need #{required}, have #{available}") end |
Instance Attribute Details
#available ⇒ Object (readonly)
Returns the value of attribute available.
6 7 8 |
# File 'lib/bsv/wallet/insufficient_funds_error.rb', line 6 def available @available end |
#required ⇒ Object (readonly)
Returns the value of attribute required.
6 7 8 |
# File 'lib/bsv/wallet/insufficient_funds_error.rb', line 6 def required @required end |