Exceptions Module

Custom exceptions module

exception amazon_paapi.errors.exceptions.AmazonError(reason)

Bases: Exception

Common base class for all Amazon API exceptions.

exception amazon_paapi.errors.exceptions.AsinNotFound(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised if the ASIN for an item is not found.

exception amazon_paapi.errors.exceptions.AssociateValidationError(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised when credentials are not valid for the selected country.

exception amazon_paapi.errors.exceptions.InvalidArgument(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised when arguments are not correct.

exception amazon_paapi.errors.exceptions.InvalidPartnerTag(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised if the partner tag is not present or invalid.

exception amazon_paapi.errors.exceptions.ItemsNotFound(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised if no items are found.

exception amazon_paapi.errors.exceptions.MalformedRequest(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised if the request for Amazon API is not correctly formed.

exception amazon_paapi.errors.exceptions.RequestError(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised if the request to Amazon API fails.

exception amazon_paapi.errors.exceptions.TooManyRequests(reason)

Bases: amazon_paapi.errors.exceptions.AmazonError

Raised when requests limit is reached.