django.contrib.sessions.exceptions 源代码

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