[Django] #33541: Database exceptions / django.db.utils.Error and subclasses are not documented

3 views
Skip to first unread message

Django

unread,
Feb 24, 2022, 2:12:42 PM2/24/22
to django-...@googlegroups.com
#33541: Database exceptions / django.db.utils.Error and subclasses are not
documented
-----------------------------------------+------------------------
Reporter: juspence | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 4.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I am trying to implement a similar feature as
https://code.djangoproject.com/ticket/24810 for my app, which uses Django.
The details aren't really important, but my goal is to add custom retry
logic depending on what exception is received and what the cause was. So I
need to know what the different django.db.utils.Error subtypes mean and
what situations they get raised in.

I have looked at the docs:
https://docs.djangoproject.com/en/4.0/ref/exceptions/#database-exceptions

And the source code:
https://github.com/django/django/blob/main/django/db/utils.py

But there is nothing written about what the different database exceptions
mean.

--
Ticket URL: <https://code.djangoproject.com/ticket/33541>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages