mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2026-03-28 10:23:52 +01:00
20 lines
359 B
Python
20 lines
359 B
Python
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
|