@cached_property
    def wrap_database_errors(self):
        return DatabaseErrorWrapper(self)
Context manager and decorator that re-throws backend-specific database
dataset/ETHPy150Open django/django/django/db/backends/base/base.py/BaseDatabaseWrapper.wrap_database_errors