Exception: ECB::UnknownCurrencyError

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

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