diff options
| author | Daniel Hepper <daniel.hepper@gmail.com> | 2018-05-27 16:08:50 +0200 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2018-05-27 16:08:50 +0200 |
| commit | a6fb5b1fe022c5279aa275c70b5193f2a2fac5fe (patch) | |
| tree | df01be088a5ac97cbc53fe5735cd69174cd47133 /docs | |
| parent | 5cc81cd9eb69f5f7a711412c02039b435c393135 (diff) | |
Remove documenation for non-existent middleware (#9998)
The docs contained a reference to the class
django.middleware.exception.ExceptionMiddleware. This class was introduced in
05c888ffb843. It was removed in 7d1b69dbe7, but the documentation remained.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/middleware.txt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index d47d09b65c..82f7223367 100644 --- a/docs/ref/middleware.txt +++ b/docs/ref/middleware.txt @@ -74,34 +74,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 --------------- |
