Context / Client / exceptions / ResourceNotFoundException
ResourceNotFoundException¶
- class Context.Client.exceptions.ResourceNotFoundException¶
The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
Example
try: ... except client.exceptions.ResourceNotFoundException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'resourceId': 'string', 'resourceType': 'agent-context'|'connection'|'curation-policy'|'evaluation'|'ontology'|'ontology-induction'|'resource-policy', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.
message (string) –
A message that describes the error.
resourceId (string) –
The ID of the resource that was not found.
resourceType (string) –
The type of the resource that wasn’t found.
Valid values:
agent-context- An agent context.connection- A connection.curation-policy- A curation policy.evaluation- Reserved for future use.ontology- An ontology.ontology-induction- An ontology induction.resource-policy- A resource-based policy.
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.