DLM / Client / exceptions / InvalidRequestException

InvalidRequestException#

class DLM.Client.exceptions.InvalidRequestException#

Bad request. The request is missing required parameters or has invalid parameters.

Example

try:
  ...
except client.exceptions.InvalidRequestException 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',
    'Code': 'string',
    'RequiredParameters': [
        'string',
    ],
    'MutuallyExclusiveParameters': [
        'string',
    ],
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    Bad request. The request is missing required parameters or has invalid parameters.

    • Message (string) –

    • Code (string) –

    • RequiredParameters (list) –

      The request omitted one or more required parameters.

      • (string) –

    • MutuallyExclusiveParameters (list) –

      The request included parameters that cannot be provided together.

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