Connect / Client / exceptions / ServiceQuotaExceededException

ServiceQuotaExceededException#

class Connect.Client.exceptions.ServiceQuotaExceededException#

The service quota has been exceeded.

Example

try:
  ...
except client.exceptions.ServiceQuotaExceededException 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',
    'Reason': {
        'AttachedFileServiceQuotaExceededExceptionReason': 'TOTAL_FILE_SIZE_EXCEEDED'|'TOTAL_FILE_COUNT_EXCEEDED'
    },
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The service quota has been exceeded.

    • Message (string) –

    • Reason (dict) –

      The reason for the exception.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: AttachedFileServiceQuotaExceededExceptionReason. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • AttachedFileServiceQuotaExceededExceptionReason (string) –

        Total file size of all files or total number of files exceeds the service quota

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