Exception: CurrencyConverter::MissingExchangeRate
- Inherits:
-
StandardError
- Object
- StandardError
- CurrencyConverter::MissingExchangeRate
- Defined in:
- lib/currency_converter/exceptions.rb
Overview
Missing Exchange Rate
Raised when the data for a supported currencies is nil
or zero?
.
Instance Method Summary collapse
-
#initialize(from, to) ⇒ MissingExchangeRate
constructor
A new instance of MissingExchangeRate.
Constructor Details
#initialize(from, to) ⇒ MissingExchangeRate
Returns a new instance of MissingExchangeRate.
6 7 8 |
# File 'lib/currency_converter/exceptions.rb', line 6 def initialize(from, to) super("Foreign exchange rate from #{from} to #{to} is missing.") end |