ManagedBlockchainQuery / Client / exceptions / ValidationException

ValidationException#

class ManagedBlockchainQuery.Client.exceptions.ValidationException#

The resource passed is invalid.

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

Structure

  • (dict) –

    The resource passed is invalid.

    • message (string) –

      The container for the exception message.

    • reason (string) –

      The container for the reason for the exception

    • fieldList (list) –

      The container for the fieldList of the exception.

      • (dict) –

        The resource passed is invalid.

        • name (string) –

          The name of the field that triggered the ValidationException.

        • message (string) –

          The ValidationException message.

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