2020-09-07 19:33:47 +08:00
|
|
|
from django.core.exceptions import BadRequest, SuspiciousOperation
|
2013-05-16 07:14:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
class InvalidSessionKey(SuspiciousOperation):
|
|
|
|
"""Invalid characters in session key"""
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class SuspiciousSession(SuspiciousOperation):
|
|
|
|
"""The session may be tampered with"""
|
|
|
|
pass
|
2020-09-07 19:33:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
class SessionInterrupted(BadRequest):
|
|
|
|
"""The session was interrupted."""
|
|
|
|
pass
|