Context / Client / exceptions / ConflictException

ConflictException

class Context.Client.exceptions.ConflictException

The request conflicts with the current state of the resource. Check the resource’s current state before you retry the request.

Example

try:
  ...
except client.exceptions.ConflictException 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',
    'resourceId': 'string',
    'resourceType': 'agent-context'|'connection'|'curation-policy'|'evaluation'|'ontology'|'ontology-induction'|'resource-policy',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request conflicts with the current state of the resource. Check the resource’s current state before you retry the request.

    • message (string) –

      A message that describes the error.

    • resourceId (string) –

      The ID of the resource that caused the conflict. When several resources caused it, a comma-separated list of their IDs.

    • resourceType (string) –

      The type of the resource that caused the conflict.

      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.