@classmethod
    def is_integrity_error(cls, exception):
        raise NotImplementedError('Implement in subclass')
Check if given exception flags an integrity error in the DB
dataset/ETHPy150Open omab/python-social-auth/social/storage/base.py/BaseStorage.is_integrity_error