Panorama / Client / exceptions / ValidationException

ValidationException#

class Panorama.Client.exceptions.ValidationException#

The request contains an invalid parameter value.

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

{
    'ErrorArguments': [
        {
            'Name': 'string',
            'Value': 'string'
        },
    ],
    'ErrorId': 'string',
    'Fields': [
        {
            'Message': 'string',
            'Name': 'string'
        },
    ],
    'Message': 'string',
    'Reason': 'UNKNOWN_OPERATION'|'CANNOT_PARSE'|'FIELD_VALIDATION_FAILED'|'OTHER',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request contains an invalid parameter value.

    • ErrorArguments (list) –

      A list of attributes that led to the exception and their values.

      • (dict) –

        A validation exception error argument.

        • Name (string) –

          The argument’s name.

        • Value (string) –

          The argument’s value.

    • ErrorId (string) –

      A unique ID for the error.

    • Fields (list) –

      A list of request parameters that failed validation.

      • (dict) –

        A validation exception field.

        • Message (string) –

          The field’s message.

        • Name (string) –

          The field’s name.

    • Message (string) –

    • Reason (string) –

      The reason that validation failed.

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