Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
classify_error
codeintel.jobs.classify_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
codeintel.jobs.classify_errorbackend/app/codeintel/jobs.py, lines 239–249Open source
def classify_error(exc: BaseException) -> tuple[str, bool]: """(error_kind, retryable).""" if isinstance(exc, RepoSpecError): return "invalid_repository", False if isinstance(exc, GitError): return ("git_transient" if exc.retryable else "git_permanent"), exc.retryable if isinstance(exc, EmbeddingUnavailable): return "embedding_unavailable", True if isinstance(exc, (ConnectionError, TimeoutError, OSError)): return "transient", True return "internal_error", FalseWhat the index recorded
- Signature
def classify_error(exc: BaseException) -> tuple[str, bool]:- File
backend/app/codeintel/jobs.py- Lines
- 239–249
- Parser
- python-ast
- Git blob
54c9a5d84ee5feda5176c3e05d0aa9a7d46f6016- Call sites
- 1 named, 0 resolved, 1 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
