Exception: ECB::UnknownCurrencyError
- Inherits:
-
StandardError
- Object
- StandardError
- ECB::UnknownCurrencyError
- Defined in:
- lib/ecb/currency_converter/exceptions.rb
Overview
ECB Unknown Currency Error
Raised when we try to grab data for an unsupported currency code.
-
currency_code- the unsupported ISO 4217 Currency Code.
Instance Method Summary collapse
-
#initialize(currency_code) ⇒ UnknownCurrencyError
constructor
A new instance of UnknownCurrencyError.
Constructor Details
#initialize(currency_code) ⇒ UnknownCurrencyError
Returns a new instance of UnknownCurrencyError.
8 9 10 |
# File 'lib/ecb/currency_converter/exceptions.rb', line 8 def initialize(currency_code) super("#{currency_code} is not supported.") end |