summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hepper <daniel.hepper@gmail.com>2018-05-27 16:08:50 +0200
committerTim Graham <timograham@gmail.com>2018-05-27 13:29:44 -0400
commita5c5e51aa9b4490ff3a47ec0b0da176cb66241c8 (patch)
treef7cd8da7906a1f61a51735d10e7abef44a5f0e35
parent1adac352d3cd64d2193f9cd56e1e97b0022d6c48 (diff)
[2.0.x] Removed docs for obsolete ExceptionMiddleware.
Backport of a6fb5b1fe022c5279aa275c70b5193f2a2fac5fe from master
-rw-r--r--docs/ref/middleware.txt28
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index f5ebc93dec..0cd706c697 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -89,34 +89,6 @@ issued by the middleware.
* Sends broken link notification emails to :setting:`MANAGERS` (see
:doc:`/howto/error-reporting`).
-Exception middleware
---------------------
-
-.. module:: django.middleware.exception
- :synopsis: Middleware to return responses for exceptions.
-
-.. class:: ExceptionMiddleware
-
-Catches exceptions raised during the request/response cycle and returns the
-appropriate response.
-
-* :class:`~django.http.Http404` is processed by
- :data:`~django.conf.urls.handler404` (or a more friendly debug page if
- :setting:`DEBUG=True <DEBUG>`).
-* :class:`~django.core.exceptions.PermissionDenied` is processed
- by :data:`~django.conf.urls.handler403`.
-* ``MultiPartParserError`` is processed by :data:`~django.conf.urls.handler400`.
-* :class:`~django.core.exceptions.SuspiciousOperation` is processed by
- :data:`~django.conf.urls.handler400` (or a more friendly debug page if
- :setting:`DEBUG=True <DEBUG>`).
-* Any other exception is processed by :data:`~django.conf.urls.handler500`
- (or a more friendly debug page if :setting:`DEBUG=True <DEBUG>`).
-
-Django uses this middleware regardless of whether or not you include it in
-:setting:`MIDDLEWARE`, however, you may want to subclass if your own middleware
-needs to transform any of these exceptions into the appropriate responses.
-:class:`~django.middleware.locale.LocaleMiddleware` does this, for example.
-
GZip middleware
---------------