Exception: CurrencyConverter::UnknownCurrency
- Inherits:
-
StandardError
- Object
- StandardError
- CurrencyConverter::UnknownCurrency
- Defined in:
- lib/currency_converter/exceptions.rb
Overview
Unknown Currency
Raised when we try to grab data for an unsupported currency code.
Instance Method Summary collapse
-
#initialize(currency_code) ⇒ UnknownCurrency
constructor
A new instance of UnknownCurrency.
Constructor Details
#initialize(currency_code) ⇒ UnknownCurrency
Returns a new instance of UnknownCurrency.
15 16 17 |
# File 'lib/currency_converter/exceptions.rb', line 15 def initialize(currency_code) super("#{currency_code} is not supported.") end |