OpenSearchMemory / Client / exceptions / ConflictException
ConflictException¶
- class OpenSearchMemory.Client.exceptions.ConflictException¶
The request conflicts with the current state of the resource. For example, the space is being created, updated, or deleted, a space with the same name already exists, or you reused a client token with different parameters. Wait for the space to finish being created, updated, or deleted, or use a different name or client token, and then retry.
Example
try: ... except client.exceptions.ConflictException 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': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request conflicts with the current state of the resource. For example, the space is being created, updated, or deleted, a space with the same name already exists, or you reused a client token with different parameters. Wait for the space to finish being created, updated, or deleted, or use a different name or client token, and then retry.
message (string) –
A message that describes the conflict.
resourceId (string) –
The ID of the resource that caused the conflict.
resourceType (string) –
The type of the resource that caused the conflict.
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.