[Django] #24733: Pass exceptions to error handlers

9 views
Skip to first unread message

Django

unread,
May 1, 2015, 7:38:16 AM5/1/15
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-----------------------------------------+------------------------
Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: master
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 |
-----------------------------------------+------------------------
As discussed in this thread: https://groups.google.com/forum/#!topic
/django-developers/kcFqjmnlUTQ

Error views should receive the exception that triggered the view. This is
especially useful to show custom messages for permission denied errors
(403).

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

Django

unread,
May 1, 2015, 8:05:00 AM5/1/15
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------+--------------------------------------

Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by claudep):

* has_patch: 0 => 1


Comment:

PR: https://github.com/django/django/pull/4590

--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:1>

Django

unread,
May 1, 2015, 9:12:21 AM5/1/15
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------+------------------------------------

Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by timgraham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:2>

Django

unread,
May 5, 2015, 5:00:06 AM5/5/15
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------+------------------------------------

Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"69125ce90453f94c92432be1ab67768db514c82d" 69125ce9]:
{{{
#!CommitTicketReference repository=""
revision="69125ce90453f94c92432be1ab67768db514c82d"
Extended variable name in handlers/base.py

Refs #24733.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:3>

Django

unread,
May 5, 2015, 9:42:01 AM5/5/15
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------------+-------------------------------------

Reporter: claudep | Owner: nobody
Type: New feature | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:4>

Django

unread,
May 11, 2015, 4:03:57 PM5/11/15
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: nobody
Type: New feature | Status: closed

Component: HTTP handling | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"70779d9c1cab77791c73b72e8a63f60184d8f2b0" 70779d9]:
{{{
#!CommitTicketReference repository=""
revision="70779d9c1cab77791c73b72e8a63f60184d8f2b0"
Fixed #24733 -- Passed the triggering exception to 40x error handlers

Thanks Tim Graham for the review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:5>

Django

unread,
Jan 17, 2017, 10:09:58 PM1/17/17
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------------+-------------------------------------
Reporter: Claude Paroz | Owner: nobody
Type: New feature | Status: closed

Component: HTTP handling | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"3cee9edd1b3e1a11ecdfeecef6f2247c10c859fb" 3cee9ed]:
{{{
#!CommitTicketReference repository=""
revision="3cee9edd1b3e1a11ecdfeecef6f2247c10c859fb"
Refs #24733 -- Removed support for error views without the exception
parameter.

Per deprecation timeline.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:6>

Django

unread,
Jul 31, 2018, 9:09:57 PM7/31/18
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------------+-------------------------------------
Reporter: Claude Paroz | Owner: nobody
Type: New feature | Status: closed

Component: HTTP handling | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"49f97b645fb1716cf69177558c41cf650a701eed" 49f97b64]:
{{{
#!CommitTicketReference repository=""
revision="49f97b645fb1716cf69177558c41cf650a701eed"
Refs #24733 -- Documented arguments for custom error views.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:7>

Django

unread,
Jul 31, 2018, 9:10:03 PM7/31/18
to django-...@googlegroups.com
#24733: Pass exceptions to error handlers
-------------------------------------+-------------------------------------
Reporter: Claude Paroz | Owner: nobody
Type: New feature | Status: closed

Component: HTTP handling | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"0d8f26f32014ddfd3fee5419dedc9f5860d6a5e1" 0d8f26f3]:
{{{
#!CommitTicketReference repository=""
revision="0d8f26f32014ddfd3fee5419dedc9f5860d6a5e1"
[2.1.x] Refs #24733 -- Documented arguments for custom error views.

Backport of 49f97b645fb1716cf69177558c41cf650a701eed from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24733#comment:8>

Reply all
Reply to author
Forward
0 new messages