Exception: Mint::WrongMoneyError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/mint/money/exceptions.rb

Overview

When money type is unrecognized

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ WrongMoneyError

Returns a new instance of WrongMoneyError.



13
14
15
# File 'lib/mint/money/exceptions.rb', line 13

def initialize(value)
  super "Wrong amount's type #{value.inspect}, should be Float, BigDecimal or Mint::Money"
end