Glacier / Client / exceptions / PolicyEnforcedException

PolicyEnforcedException#

class Glacier.Client.exceptions.PolicyEnforcedException#

Returned if a retrieval job would exceed the current data policy’s retrieval rate limit. For more information about data retrieval policies,

Example

try:
  ...
except client.exceptions.PolicyEnforcedException as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'type': 'string',
    'code': 'string',
    'message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Returned if a retrieval job would exceed the current data policy’s retrieval rate limit. For more information about data retrieval policies,

    • type (string) –

      Client

    • code (string) –

      PolicyEnforcedException

    • message (string) –

      InitiateJob request denied by current data retrieval policy.

    • 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.