Exception: CurrencyConverter::UnknownCurrency

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

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