Sha256: 5588d7073cbc7b7baf6f2d8f717b215686e9460b060bb52d99f4e9efd8c99f94
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
module ECB module Exchange class Error < StandardError; end class DateNotFoundError < Error def initialize(date) super("#{date} is missing or unavailable") end end class CurrencyNotFoundError < Error def initialize(currency_code) super("#{currency_code} is missing or unavailable") end end class ResponseError < Error def initialize(url, error_details) super("fetching '#{url}' failed - #{error_details}") end end class ParseError < Error def initialize(url) super("parsing XML from '#{url}' failed") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ecb_exchange-0.1.2 | lib/ecb/exchange/errors.rb |
ecb_exchange-0.1.1 | lib/ecb/exchange/errors.rb |
ecb_exchange-0.1.0 | lib/ecb/exchange/errors.rb |