Exception: Coinbase::InsufficientFundsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/coinbase/errors.rb

Overview

An error raised when an operation is attempted with insufficient funds.

Instance Method Summary collapse

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