AgentDiscovery / Client / exceptions / ThrottlingException
ThrottlingException¶
- class AgentDiscovery.Client.exceptions.ThrottlingException¶
Thrown when the caller exceeds a rate/burst limit (D-9). ARD’s code for it is
RATE_LIMIT_EXCEEDED.Example
try: ... except client.exceptions.ThrottlingException 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', 'errorCode': 'INVALID_ARGUMENT'|'UNAUTHENTICATED'|'NOT_FOUND'|'RATE_LIMIT_EXCEEDED'|'INTERNAL_ERROR', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Thrown when the caller exceeds a rate/burst limit (D-9). ARD’s code for it is
RATE_LIMIT_EXCEEDED.message (string) –
errorCode (string) –
ARD’s error classification (Appendix B). Values are ARD’s, uppercase on the wire.
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.