Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_error
modules.mcp.native_server._error
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| build_mcp_server | native_server.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| native_server | native_server.py | same file |
modules.mcp.native_server._errorbackend/app/modules/mcp/native_server.py, lines 53–58Open source
def _error(exc: Exception) -> dict[str, Any]: if isinstance(exc, ModeUnavailable): return {"error": "mode_unavailable", "detail": exc.reason} if isinstance(exc, RepositoryNotFound): return {"error": "repository_not_found", "detail": str(exc)} raise excWhat the index recorded
- Signature
def _error(exc: Exception) -> dict[str, Any]:- File
backend/app/modules/mcp/native_server.py- Lines
- 53–58
- Parser
- python-ast
- Git blob
0927865cd82a674fcaaa8c119faa660d8e20a47f- Call sites
- 2 named, 0 resolved, 2 left unlinked
