PcaConnectorAd / Client / exceptions / ValidationException

ValidationException#

class PcaConnectorAd.Client.exceptions.ValidationException#

An input validation error occurred. For example, invalid characters in a template name, or if a pagination token is invalid.

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': 'FIELD_VALIDATION_FAILED'|'INVALID_PERMISSION'|'INVALID_STATE'|'MISMATCHED_CONNECTOR'|'MISMATCHED_VPC'|'NO_CLIENT_TOKEN'|'UNKNOWN_OPERATION'|'OTHER',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    An input validation error occurred. For example, invalid characters in a template name, or if a pagination token is invalid.

    • Message (string) –

    • Reason (string) –

      The reason for the validation error. This won’t be return 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.