DirectoryServiceData / Client / exceptions / ValidationException
ValidationException#
- class DirectoryServiceData.Client.exceptions.ValidationException#
The request isn’t valid. Review the details in the error message to update the invalid parameters or values in your request.
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', 'Reason': 'INVALID_REALM'|'INVALID_DIRECTORY_TYPE'|'INVALID_SECONDARY_REGION'|'INVALID_NEXT_TOKEN'|'INVALID_ATTRIBUTE_VALUE'|'INVALID_ATTRIBUTE_NAME'|'INVALID_ATTRIBUTE_FOR_USER'|'INVALID_ATTRIBUTE_FOR_GROUP'|'INVALID_ATTRIBUTE_FOR_SEARCH'|'INVALID_ATTRIBUTE_FOR_MODIFY'|'DUPLICATE_ATTRIBUTE'|'MISSING_ATTRIBUTE'|'ATTRIBUTE_EXISTS'|'LDAP_SIZE_LIMIT_EXCEEDED'|'LDAP_UNSUPPORTED_OPERATION', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request isn’t valid. Review the details in the error message to update the invalid parameters or values in your request.
Message (string) –
Reason (string) –
Reason the request 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.