Sha256: ca78d4996f01a98d7ec7d10ce125102ade193b3ff56f86b81ebda7ef9425c89d
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecb_exchange-0.2.1 | lib/ecb/exchange/errors.rb |
ecb_exchange-0.2.0 | lib/ecb/exchange/errors.rb |