Sha256: 99759b6d5bef8f60a2d40e868c05054a85bf8a39fbb3992a219a337b68d962ea
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Peddler # @api private module Errors # Known codes CODES = %w[ AccessDenied InternalError InvalidAccessKeyId 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.6.4 | lib/peddler/errors/error.rb |