2026-05-31 23:58:26 +09:00
|
|
|
# src/exceptions.py
|
2026-06-24 20:20:07 +05:30
|
|
|
"""Backward-compatible shim — the single source of truth is core/exceptions.py.
|
2026-05-31 23:58:26 +09:00
|
|
|
|
2026-06-24 20:20:07 +05:30
|
|
|
Historically this module was a byte-for-byte duplicate of core/exceptions.py,
|
|
|
|
|
which is the canonical definition (imported by app.py, core/__init__.py, and
|
|
|
|
|
routes/chat_routes.py). To kill the drift, this now simply re-exports the
|
|
|
|
|
exception classes from core.exceptions so there is exactly one place that
|
|
|
|
|
defines them. Existing `from src.exceptions import ...` callers keep working.
|
|
|
|
|
"""
|
|
|
|
|
from core.exceptions import ( # noqa: F401
|
|
|
|
|
SessionNotFoundError,
|
|
|
|
|
InvalidFileUploadError,
|
|
|
|
|
LLMServiceError,
|
|
|
|
|
WebSearchError,
|
|
|
|
|
)
|
2026-05-31 23:58:26 +09:00
|
|
|
|
2026-06-24 20:20:07 +05:30
|
|
|
__all__ = [
|
|
|
|
|
"SessionNotFoundError",
|
|
|
|
|
"InvalidFileUploadError",
|
|
|
|
|
"LLMServiceError",
|
|
|
|
|
"WebSearchError",
|
|
|
|
|
]
|