PartnerCentralAccountAPI / Client / exceptions / AccessDeniedException
AccessDeniedException¶
- class PartnerCentralAccountAPI.Client.exceptions.AccessDeniedException¶
The request was denied due to insufficient permissions. The caller does not have the required permissions to perform this operation.
Example
try: ... except client.exceptions.AccessDeniedException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'Message': 'string', 'Reason': 'ACCESS_DENIED'|'INCOMPATIBLE_BENEFIT_AWS_PARTNER_STATE', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request was denied due to insufficient permissions. The caller does not have the required permissions to perform this operation.
Message (string) –
Reason (string) –
The specific reason for the access denial.
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.