lib/peddler/errors/error.rb in peddler-1.5.0 vs lib/peddler/errors/error.rb in peddler-1.6.0

- old
+ new

@@ -1,12 +1,15 @@ module Peddler # @api private module Errors - KNOWN = %w( + # Known codes + CODES = %w( AccessDenied InvalidMarketplace InvalidParameterValue + InvalidRequest + MalformedInput QuotaExceeded RequestThrottled ).freeze # @api private @@ -17,10 +20,10 @@ @cause = cause super msg end end - KNOWN.each do |name| + CODES.each do |name| const_set name, Class.new(Error) end end end