Greengrass / Client / exceptions / BadRequestException

BadRequestException#

class Greengrass.Client.exceptions.BadRequestException#

General error information.

Example

try:
  ...
except client.exceptions.BadRequestException 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

{
    'ErrorDetails': [
        {
            'DetailedErrorCode': 'string',
            'DetailedErrorMessage': 'string'
        },
    ],
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) – General error information.

    • ErrorDetails (list) – Details about the error.

      • (dict) – Details about the error.

        • DetailedErrorCode (string) – A detailed error code.

        • DetailedErrorMessage (string) – A detailed error message.

    • Message (string) – A message containing information about the error.

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