KeyspacesStreams / Client / exceptions / ValidationException
ValidationException¶
- class KeyspacesStreams.Client.exceptions.ValidationException¶
The request validation failed because one or more input parameters failed validation.
This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.
Example
try: ... except client.exceptions.ValidationException 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', 'errorCode': 'InvalidFormat'|'TrimmedDataAccess'|'ExpiredIterator'|'ExpiredNextToken', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request validation failed because one or more input parameters failed validation.
This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.
message (string) –
The input fails to satisfy the constraints specified by the service. Check the error details and modify your request.
errorCode (string) –
An error occurred validating your request. See the error message for details.
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.