DirectoryServiceData / Client / exceptions / ThrottlingException

ThrottlingException#

class DirectoryServiceData.Client.exceptions.ThrottlingException#

The limit on the number of requests per second has been exceeded.

Example

try:
  ...
except client.exceptions.ThrottlingException 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

{
    'Message': 'string',
    'RetryAfterSeconds': 123,
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The limit on the number of requests per second has been exceeded.

    • Message (string) –

    • RetryAfterSeconds (integer) –

      The recommended amount of seconds to retry after a throttling exception.

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