Exception: Mint::WrongCurrencyError

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

Overview

When currency type is unrecognized

Instance Method Summary collapse

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