OpenSearchMemory / Client / exceptions / ValidationException
ValidationException¶
- class OpenSearchMemory.Client.exceptions.ValidationException¶
The request isn’t valid. The
reason,message, andfieldListmembers describe the problem. Fix the request, and then try again.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': 'disallowedQueryType'|'nonFilterableField'|'unknownField'|'fieldIndexMismatch'|'queryNestingTooDeep'|'unboundedPattern'|'queryBodyTooLarge'|'malformedQueryBody'|'invalidNextToken'|'fieldValidationFailed'|'unsupportedParameter'|'unsupportedField'|'other', 'fieldList': [ { 'name': 'string', 'message': 'string' }, ], 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request isn’t valid. The
reason,message, andfieldListmembers describe the problem. Fix the request, and then try again.message (string) –
A message that describes why the request failed validation, such as the field, key, or limit involved.
reason (string) –
The reason that the request failed validation.
fieldList (list) –
The fields that failed validation, if any.
(dict) –
Information about a request field that failed validation.
name (string) –
The field name.
message (string) –
A message that describes 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.