CloudExtensions / Client / exceptions / ConflictException
ConflictException¶
- class CloudExtensions.Client.exceptions.ConflictException¶
The request conflicts with the current state of the resource.
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', 'conflict': { 'duplicateValue': { 'field': 'string', 'value': 'string', 'conflictsWith': 'string' }, 'resourceState': { 'state': 'string', 'problem': 'string' }, 'dependencyState': { 'dependency': 'string', 'identifier': 'string', 'state': 'string', 'problem': 'string' } }, 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request conflicts with the current state of the resource.
message (string) –
A short summary that is the same for every ConflictException. Read conflict for the details.
conflict (dict) –
The details of the conflict.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
duplicateValue,resourceState,dependencyState. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
duplicateValue (dict) –
Another resource already has the value the request gives a field that must be unique, such as a profile’s name.
field (string) –
The name of the field causing a conflict.
value (string) –
The value of the conflicting field.
conflictsWith (string) –
The identifier of the conflicting item.
resourceState (dict) –
The target resource’s state doesn’t allow the request.
state (string) –
The state of the resource that conflicts with the request.
problem (string) –
The problem caused by the resource’s state.
dependencyState (dict) –
A resource the request depends on is in a state that doesn’t allow the request, such as a draft revised after the caller read its draftRevision.
dependency (string) –
The dependency causing the conflict.
identifier (string) –
An identifier for the conflicting dependency.
state (string) –
The state of the dependency that conflicts with the request.
problem (string) –
The problem caused by the dependency’s state.
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.