1class SessionNotAvailable(Exception):
2 """
3 Raised when attempting to access a session that hasn't been set up.
4
5 This typically occurs when:
6 - SessionMiddleware hasn't been called yet (e.g., during early middleware processing)
7 - An error occurred before SessionMiddleware could run
8 - A request is being processed outside the normal middleware chain
9 """