PinpointSMSVoiceV2 / Client / exceptions / ResourceNotFoundException

ResourceNotFoundException#

class PinpointSMSVoiceV2.Client.exceptions.ResourceNotFoundException#

A requested resource couldn’t be found.

Example

try:
  ...
except client.exceptions.ResourceNotFoundException 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': 'account'|'phone-number'|'sender-id'|'pool'|'configuration-set'|'opt-out-list'|'event-destination'|'keyword'|'opted-out-number'|'registration'|'registration-attachment'|'verified-destination-number'|'protect-configuration'|'policy',
    'ResourceId': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    A requested resource couldn’t be found.

    • Message (string) –

    • ResourceType (string) –

      The type of resource that caused the exception.

    • ResourceId (string) –

      The unique identifier of the resource.

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