Exception: Coinbase::InsufficientFundsError
- Inherits:
-
StandardError
- Object
- StandardError
- Coinbase::InsufficientFundsError
- Defined in:
- lib/coinbase/errors.rb
Overview
An error raised when an operation is attempted with insufficient funds.
Instance Method Summary collapse
-
#initialize(expected, exact, msg = 'Insufficient funds') ⇒ InsufficientFundsError
constructor
A new instance of InsufficientFundsError.
Constructor Details
#initialize(expected, exact, msg = 'Insufficient funds') ⇒ InsufficientFundsError
Returns a new instance of InsufficientFundsError.
68 69 70 |
# File 'lib/coinbase/errors.rb', line 68 def initialize(expected, exact, msg = 'Insufficient funds') super("#{msg}: have #{exact}, need #{expected}.") end |