Exception: ECB::MissingExchangeRateError
- Inherits:
-
StandardError
- Object
- StandardError
- ECB::MissingExchangeRateError
- Defined in:
- lib/ecb/currency_converter/exceptions.rb
Overview
ECB Missing Exchange Rate Error
Raised when the data for a supported currency code is nil or zero?.
-
currency_code- the unsupported ISO 4217 Currency Code.
Instance Method Summary collapse
-
#initialize(currency_code) ⇒ MissingExchangeRateError
constructor
A new instance of MissingExchangeRateError.
Constructor Details
#initialize(currency_code) ⇒ MissingExchangeRateError
Returns a new instance of MissingExchangeRateError.
19 20 21 |
# File 'lib/ecb/currency_converter/exceptions.rb', line 19 def initialize(currency_code) super("Foreign exchange reference rate for #{currency_code} is missing.") end |