CredentialBroker / Client / exceptions / ConflictException

ConflictException

class CredentialBroker.Client.exceptions.ConflictException

The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).

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': 'string',
    'reason': 'RESOURCE_ALREADY_EXISTS'|'CONCURRENT_MODIFICATION'|'RESOURCE_STATE_CONFLICT'|'KEY_TRANSITION_IN_PROGRESS'|'SESSION_STATE_CONFLICT',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) –

    The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).

    • message (string) –

    • resourceId (string) –

      The identifier of the resource the request conflicted with, when the service attributes the conflict to a single resource.

    • resourceType (string) –

      The type of the resource named by resourceId, when present.

    • reason (string) –

      Identifies the kind of state conflict that caused the request to be rejected. New values may be added over time, so treat an unrecognized value as a generic conflict and rely on message.

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