Exception: Mint::FixerCurrency::WrongCurrencyError

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

Overview

Exception for wrong currency name

Instance Method Summary collapse

Constructor Details

#initialize(currency) ⇒ WrongCurrencyError

Returns a new instance of WrongCurrencyError.



5
6
7
# File 'lib/mint/fixer_currency/exceptions.rb', line 5

def initialize(currency)
  super "Can't find #{currency} currency, please setup it with Mint::FixerCurrency.currencies"
end