AmplifyBackend / Client / exceptions / NotFoundException

NotFoundException#

class AmplifyBackend.Client.exceptions.NotFoundException#

An error returned when a specific resource type is not found.

Example

try:
  ...
except client.exceptions.NotFoundException 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',
    'ResourceType': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    An error returned when a specific resource type is not found.

    • Message (string) –

      An error message to inform that the request has failed.

    • ResourceType (string) –

      The type of resource that is not found.

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