ResourceExplorer / Client / exceptions / ValidationException

ValidationException#

class ResourceExplorer.Client.exceptions.ValidationException#

You provided an invalid value for one of the operation’s parameters. Check the syntax for the operation, and try again.

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

{
    'FieldList': [
        {
            'Name': 'string',
            'ValidationIssue': 'string'
        },
    ],
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    You provided an invalid value for one of the operation’s parameters. Check the syntax for the operation, and try again.

    • FieldList (list) –

      An array of the request fields that had validation errors.

      • (dict) –

        A structure that describes a request field with a validation error.

        • Name (string) –

          The name of the request field that had a validation error.

        • ValidationIssue (string) –

          The validation error caused by the request field.

    • Message (string) –

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