django-test/env/lib/python3.8/site-packages/django/contrib/sessions/exceptions.py

20 lines
359 B
Python
Raw Permalink Normal View History

2022-08-26 10:41:18 +00:00
from django.core.exceptions import BadRequest, SuspiciousOperation
class InvalidSessionKey(SuspiciousOperation):
"""Invalid characters in session key"""
pass
class SuspiciousSession(SuspiciousOperation):
"""The session may be tampered with"""
pass
class SessionInterrupted(BadRequest):
"""The session was interrupted."""
pass