Sha256: aa8197b5e5bcea09752201419de9b9bbfc95739d6bf3b08d88da2b450d64fcc1
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
module Peddler # @api private module Errors # Known codes CODES = %w[ AccessDenied InvalidMarketplace InvalidParameterValue InvalidRequest MalformedInput QuotaExceeded RequestThrottled ].freeze # @api private class Error < StandardError attr_reader :cause def initialize(msg, cause) @cause = cause super msg end end CODES.each do |name| const_set name, Class.new(Error) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.6.3 | lib/peddler/errors/error.rb |
peddler-1.6.2 | lib/peddler/errors/error.rb |
peddler-1.6.1 | lib/peddler/errors/error.rb |