Sha256: 2780bc5041e0a343aac0498724217b9fddaeced7e7f834677805d0abb17f826b
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
module Peddler # @api private module Errors KNOWN = %w( AccessDenied InvalidMarketplace InvalidParameterValue QuotaExceeded RequestThrottled ).freeze # @api private class Error < StandardError attr_reader :cause def initialize(msg, cause) @cause = cause super msg end end KNOWN.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.5.0 | lib/peddler/errors/error.rb |