AgentDiscovery / Client / exceptions / ValidationException
ValidationException¶
- class AgentDiscovery.Client.exceptions.ValidationException¶
Thrown when a request fails input validation.
errorCode carries ARD’s Appendix B code, INVALID_ARGUMENT, which ARD’s OpenAPI makes a required member of every error body on the ARD surface. The Amazon-shaped and internal surfaces leave it unset.
Example
try: ... except client.exceptions.ValidationException 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 a request fails input validation.
errorCode carries ARD’s Appendix B code, INVALID_ARGUMENT, which ARD’s OpenAPI makes a required member of every error body on the ARD surface. The Amazon-shaped and internal surfaces leave it unset.
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.