MediaLive / Client / exceptions / UnprocessableEntityException

UnprocessableEntityException#

class MediaLive.Client.exceptions.UnprocessableEntityException#

Placeholder documentation for UnprocessableEntityException

Example

try:
  ...
except client.exceptions.UnprocessableEntityException 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',
    'ValidationErrors': [
        {
            'ElementPath': 'string',
            'ErrorMessage': 'string'
        },
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) – Placeholder documentation for UnprocessableEntityException

    • Message (string) – The error message.

    • ValidationErrors (list) – A collection of validation error responses.

      • (dict) – Placeholder documentation for ValidationError

        • ElementPath (string) – Path to the source of the error.

        • ErrorMessage (string) – The error 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.