S3Vectors / Client / exceptions / ValidationException

ValidationException

class S3Vectors.Client.exceptions.ValidationException

The requested action isn’t valid.

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',
    'fieldList': [
        {
            'path': 'string',
            'message': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The requested action isn’t valid.

    • message (string) –

    • fieldList (list) –

      A list of specific validation failures that are encountered during input processing. Each entry in the list contains a path to the field that failed validation and a detailed message that explains why the validation failed. To satisfy multiple constraints, a field can appear multiple times in this list if it failed. You can use the information to identify and fix the specific validation issues in your request.

      • (dict) –

        Contains information about a validation exception.

        • path (string) –

          A path about the validation exception.

        • message (string) –

          A message about the 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.