AgentRegistry / Client / exceptions / ValidationException
ValidationException¶
- class AgentRegistry.Client.exceptions.ValidationException¶
The request failed validation of one or more input fields.
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', 'reason': 'CannotParse'|'FieldValidationFailed'|'IdempotentParameterMismatchException'|'EventInOtherSession'|'ResourceConflict', 'fieldList': [ { 'name': 'string', 'message': 'string' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request failed validation of one or more input fields.
message (string) –
reason (string) –
The reason the request failed validation.
fieldList (list) –
The list of input fields that failed validation.
(dict) –
Describes a single input field that failed validation.
name (string) –
The name of the field that failed validation.
message (string) –
A description of why the field failed validation.
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.