in pyqldb/errors/__init__.py [0:0]
def is_occ_conflict_exception(e):
"""
Is the exception an OccConflictException?
:type e: :py:class:`builtins.Exception`
:param e: The Exception caught.
:rtype: bool
:return: True if the exception is an OccConflictException. False otherwise.
"""
if isinstance(e, ClientError):
is_occ = e.response['Error']['Code'] == 'OccConflictException'
return is_occ
return False