Context / Client / exceptions / ServiceQuotaExceededException

ServiceQuotaExceededException

class Context.Client.exceptions.ServiceQuotaExceededException

The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.

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',
    'quotaCode': 'string',
    'serviceCode': 'string',
    'resourceId': 'string',
    'resourceType': 'agent-context'|'connection'|'curation-policy'|'evaluation'|'ontology'|'ontology-induction'|'resource-policy',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request would exceed a service quota. Check the quota that quotaCode names, reduce your usage, and then retry the request.

    • message (string) –

      A message that describes the error.

    • quotaCode (string) –

      The code of the quota that the request would exceed.

    • serviceCode (string) –

      The code of the service that owns the quota.

    • resourceId (string) –

      The ID of the resource that the quota applies to.

    • resourceType (string) –

      The type of the resource that the quota applies to.

      Valid values:

      • agent-context - An agent context.

      • connection - A connection.

      • curation-policy - A curation policy.

      • evaluation - Reserved for future use.

      • ontology - An ontology.

      • ontology-induction - An ontology induction.

      • resource-policy - A resource-based 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.