-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherrors.py
More file actions
33 lines (18 loc) · 827 Bytes
/
Copy patherrors.py
File metadata and controls
33 lines (18 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""Error taxonomy for python-docs-mcp-server.
Named exceptions for predictable failure modes, mapped to MCP error responses.
See build guide section 10.
"""
class DocsServerError(Exception):
"""Base error for all docs server errors."""
class VersionNotFoundError(DocsServerError):
"""Requested Python version not found in index."""
class SymbolNotFoundError(DocsServerError):
"""Requested symbol not found in index."""
class PageNotFoundError(DocsServerError):
"""Requested page/slug not found in index."""
class IndexNotBuiltError(DocsServerError):
"""No index.db found at expected cache path."""
class IngestionError(DocsServerError):
"""Error during index building/ingestion."""
class FTS5UnavailableError(DocsServerError):
"""SQLite FTS5 extension not available in this build."""