Sha256: ba58de84724c7039cf13d13dc0b4806e00da8ea5b878a114fe80025009b7500e
Contents?: true
Size: 927 Bytes
Versions: 4
Compression:
Stored size: 927 Bytes
Contents
module Amazon module Associates class RequestError < StandardError; end class InvalidParameterValue < ArgumentError; end class ParameterOutOfRange < InvalidParameterValue; end class RequiredParameterMissing < ArgumentError; end class ItemNotFound < StandardError; end # Map AWS error types to ruby exceptions ERROR = { 'AWS.InvalidParameterValue' => InvalidParameterValue, 'AWS.MissingParameters' => RequiredParameterMissing, 'AWS.MinimumParameterRequirement' => RequiredParameterMissing, 'AWS.ECommerceService.NoExactMatches' => ItemNotFound, 'AWS.ParameterOutOfRange' => ParameterOutOfRange, 'AWS.InvalidOperationParameter'=> InvalidParameterValue, 'AWS.InvalidResponseGroup' => InvalidParameterValue, 'AWS.RestrictedParameterValueCombination' => InvalidParameterValue } IGNORE_ERRORS = ['AWS.ECommerceService.NoSimilarities'] end end
Version data entries
4 entries across 4 versions & 1 rubygems