diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt index d47d09b65c7..82f7223367f 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 `). -* :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 `). -* Any other exception is processed by :data:`~django.conf.urls.handler500` - (or a more friendly debug page if :setting:`DEBUG=True `). - -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 ---------------