Exception: Mint::WrongMoneyError
- Inherits:
-
TypeError
- Object
- TypeError
- Mint::WrongMoneyError
- Defined in:
- lib/mint/money/exceptions.rb
Overview
When money type is unrecognized
Instance Method Summary collapse
-
#initialize(value) ⇒ WrongMoneyError
constructor
A new instance of WrongMoneyError.
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 |