PrivateCAConnectorforSCEP / Client / exceptions / ValidationException
ValidationException#
- class PrivateCAConnectorforSCEP.Client.exceptions.ValidationException#
An input validation error occurred. For example, invalid characters in a name tag, or an invalid pagination token.
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': 'CA_CERT_VALIDITY_TOO_SHORT'|'INVALID_CA_USAGE_MODE'|'INVALID_CONNECTOR_TYPE'|'INVALID_STATE'|'NO_CLIENT_TOKEN'|'UNKNOWN_OPERATION'|'OTHER', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
An input validation error occurred. For example, invalid characters in a name tag, or an invalid pagination token.
Message (string) –
Reason (string) –
The reason for the validation error, if available. The service doesn’t return a reason for every validation exception.
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.