VoiceID / Client / exceptions / ConflictException
ConflictException#
- class VoiceID.Client.exceptions.ConflictException#
The request failed due to a conflict. Check the
ConflictType
and error message for more details.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
{ 'ConflictType': 'ANOTHER_ACTIVE_STREAM'|'DOMAIN_NOT_ACTIVE'|'CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT'|'ENROLLMENT_ALREADY_EXISTS'|'SPEAKER_NOT_SET'|'SPEAKER_OPTED_OUT'|'CONCURRENT_CHANGES'|'DOMAIN_LOCKED_FROM_ENCRYPTION_UPDATES'|'CANNOT_DELETE_NON_EMPTY_WATCHLIST'|'FRAUDSTER_MUST_BELONG_TO_AT_LEAST_ONE_WATCHLIST', 'Message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The request failed due to a conflict. Check the
ConflictType
and error message for more details.ConflictType (string) –
The type of conflict which caused a ConflictException. Possible types and the corresponding error messages are as follows:
DOMAIN_NOT_ACTIVE
: The domain is not active.CANNOT_CHANGE_SPEAKER_AFTER_ENROLLMENT
: You cannot change the speaker ID after an enrollment has been requested.ENROLLMENT_ALREADY_EXISTS
: There is already an enrollment for this session.SPEAKER_NOT_SET
: You must set the speaker ID before requesting an enrollment.SPEAKER_OPTED_OUT
: You cannot request an enrollment for an opted out speaker.CONCURRENT_CHANGES
: The request could not be processed as the resource was modified by another request during execution.
Message (string) –
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.