Exception: CurrencyConverter::MissingExchangeRate

Inherits:
StandardError
  • Object
show all
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

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