DataAutomationforBedrock / Client / exceptions / ValidationException

ValidationException#

class DataAutomationforBedrock.Client.exceptions.ValidationException#

This exception is thrown when the request’s input validation fails

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

Structure

  • (dict) –

    This exception is thrown when the request’s input validation fails

    • message (string) –

      Non Blank String

    • fieldList (list) –

      list of ValidationExceptionField

      • (dict) –

        Stores information about a field passed inside a request that resulted in an exception

        • name (string) –

          Non Blank String

        • message (string) –

          Non Blank 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.