psnawp_api.core.psnawp_exceptions module#

Provide exception classes for the psnawp package.

exception PSNAWPAuthenticationError[source]#

Bases: PSNAWPClientError

Exception for authentication related errors.

exception PSNAWPBadRequestError[source]#

Bases: PSNAWPClientError

Exception raised if bad request is made to the endpoint.

exception PSNAWPClientError[source]#

Bases: PSNAWPError

Exception raised if there is a problem at the client.

exception PSNAWPError[source]#

Bases: Exception

Base Exception for all PSNAWP Exceptions.

exception PSNAWPForbiddenError[source]#

Bases: PSNAWPClientError

Exception for accessing an action is not allowed due to insufficient rights to a resource.

exception PSNAWPIllegalArgumentError[source]#

Bases: PSNAWPClientError

Exception raised if user gave wrong input to a function.

exception PSNAWPInvalidTokenError[source]#

Bases: PSNAWPClientError

Exception raised if user gave unparsable npsso token string.

exception PSNAWPNotAllowedError[source]#

Bases: PSNAWPClientError

Exception raised if resource doesn’t support this method.

exception PSNAWPNotFoundError[source]#

Bases: PSNAWPClientError

Exception raised if resource not found.

exception PSNAWPServerError[source]#

Bases: PSNAWPError

Exception raised if there is a problem at the server.

exception PSNAWPTooManyRequestsError[source]#

Bases: PSNAWPClientError

Exception raised if client sends too many requests.

exception PSNAWPUnauthorizedError[source]#

Bases: PSNAWPClientError

Exception for accessing an action is not allowed due to missing the right authorization.