Connect / Client / exceptions / PropertyValidationException

PropertyValidationException#

class Connect.Client.exceptions.PropertyValidationException#

The property is not valid.

Example

try:
  ...
except client.exceptions.PropertyValidationException 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',
    'PropertyList': [
        {
            'PropertyPath': 'string',
            'Reason': 'INVALID_FORMAT'|'UNIQUE_CONSTRAINT_VIOLATED'|'REFERENCED_RESOURCE_NOT_FOUND'|'RESOURCE_NAME_ALREADY_EXISTS'|'REQUIRED_PROPERTY_MISSING'|'NOT_SUPPORTED',
            'Message': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The property is not valid.

    • Message (string) –

    • PropertyList (list) –

      • (dict) –

        Contains information about why a property is not valid.

        • PropertyPath (string) –

          The full property path.

        • Reason (string) –

          Why the property is not valid.

        • Message (string) –

          A message describing why the property is not valid.

    • 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.