lib/peddler/errors/error.rb in peddler-2.1.1 vs lib/peddler/errors/error.rb in peddler-2.3.0
- old
+ new
@@ -1,15 +1,19 @@
# frozen_string_literal: true
require 'forwardable'
module Peddler
- # @api private
+ # @!visibility private
module Errors
# These error codes are common to all Amazon MWS API sections.
#
# @see https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Errors.html
+ #
+ # There are quite a few other error types they do not explicitly document
+ # above. I decided not to define any for the sake of consistency and future
+ # maintenance.
CODES = %w[
AccessDenied
InputStreamDisconnected
InternalError
InvalidAccessKeyId
@@ -18,10 +22,10 @@
QuotaExceeded
RequestThrottled
SignatureDoesNotMatch
].freeze
- # @api private
+ # @!visibility private
class Error < StandardError
extend Forwardable
attr_reader :cause