ConnectScheduling / Client / exceptions / ValidationException

ValidationException

class ConnectScheduling.Client.exceptions.ValidationException

The input fails to satisfy the constraints specified by an AWS service.

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': 'UNKNOWN_OPERATION'|'CANNOT_PARSE'|'FIELD_VALIDATION_FAILED'|'OTHER',
    'FieldList': [
        {
            'Name': 'string',
            'Message': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The input fails to satisfy the constraints specified by an AWS service.

    • Message (string) –

    • Reason (string) –

      The reason the input failed validation. Branch on this value rather than on the message wording.

    • FieldList (list) –

      The specific input fields that failed validation, when Reason is FIELD_VALIDATION_FAILED.

      • (dict) –

        An input field that failed validation.

        • Name (string) –

          The path to the field that failed validation, using JSON pointer-style dotted notation for nested members.

        • Message (string) –

          A message describing why the field 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.