Exception: Mint::WrongCurrencyError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Mint::WrongCurrencyError
- Defined in:
- lib/mint/money/exceptions.rb
Overview
When currency type is unrecognized
Instance Method Summary collapse
-
#initialize(value) ⇒ WrongCurrencyError
constructor
A new instance of WrongCurrencyError.
Constructor Details
#initialize(value) ⇒ WrongCurrencyError
Returns a new instance of WrongCurrencyError.
6 7 8 |
# File 'lib/mint/money/exceptions.rb', line 6 def initialize(value) super "Can't find #{value} currency, please setup it with Mint::Money.conversion.rates" end |