diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2020-09-07 13:33:47 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-09-09 09:04:28 +0200 |
| commit | 2808cdc8fb15ad27f83af3e62db69f5ea7ced29e (patch) | |
| tree | 8a2d09cad742e8f839bdb6ce21b6dc1bc2c73e82 /docs/ref | |
| parent | fc1446073ed9636047c48796cc20772ab60e12b0 (diff) | |
Fixed #31962 -- Made SessionMiddleware raise SessionInterrupted when session destroyed while request is processing.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/exceptions.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/ref/exceptions.txt b/docs/ref/exceptions.txt index ae2180ff9f..d4af1de79d 100644 --- a/docs/ref/exceptions.txt +++ b/docs/ref/exceptions.txt @@ -162,6 +162,18 @@ or model are classified as ``NON_FIELD_ERRORS``. This constant is used as a key in dictionaries that otherwise map fields to their respective list of errors. +``BadRequest`` +-------------- + +.. exception:: BadRequest + + .. versionadded:: 3.2 + + The :exc:`BadRequest` exception is raised when the request cannot be + processed due to a client error. If a ``BadRequest`` exception reaches the + ASGI/WSGI handler level it results in a + :class:`~django.http.HttpResponseBadRequest`. + ``RequestAborted`` ------------------ @@ -271,6 +283,24 @@ Http exceptions may be imported from ``django.http``. :exc:`UnreadablePostError` is raised when a user cancels an upload. +.. currentmodule:: django.contrib.sessions.exceptions + +Sessions Exceptions +=================== + +Sessions exceptions are defined in ``django.contrib.sessions.exceptions``. + +``SessionInterrupted`` +---------------------- + +.. exception:: SessionInterrupted + + .. versionadded:: 3.2 + + :exc:`SessionInterrupted` is raised when a session is destroyed in a + concurrent request. It's a subclass of + :exc:`~django.core.exceptions.BadRequest`. + Transaction Exceptions ====================== |
