orchestrata_ultimate.semantic_graph.exceptions

Reference › orchestrata_ultimate › semantic_graph › exceptions

The exception hierarchy of the semantic graph package. Everything derives from SemanticGraphError: ConnectionError (the backing store cannot be reached; it shadows the builtin name inside this package), QueryError (a graph query failed), EntityNotFoundError and VectorSearchError (vector similarity search failed). The Memgraph adapter, rerankers and the package facade import it. The classes carry no extra fields.

At a glance

Source src/orchestrata_ultimate/semantic_graph/exceptions.py
Lines of code 23
Classes 5
Functions 0
Imports (internal) none
Imported by orchestrata_ultimate.semantic_graph, orchestrata_ultimate.semantic_graph.adapters.memgraph, orchestrata_ultimate.semantic_graph.embedders, orchestrata_ultimate.semantic_graph.main_discovery, orchestrata_ultimate.semantic_graph.repository, orchestrata_ultimate.semantic_graph.rerankers
Tests that import it tests/semantic_graph/test_embedders.py, tests/semantic_graph/test_main_discovery.py, tests/semantic_graph/test_memgraph_adapter.py, tests/semantic_graph/test_rerankers.py

Class diagram

Class diagram orchestrata_ultimate.semantic_graph.exceptions

Dependency diagram

Dependency diagram orchestrata_ultimate.semantic_graph.exceptions

API

Classes

SemanticGraphError

Bases: Exception · Line 6

Base exception for semantic graph operations.

ConnectionError

Bases: SemanticGraphError · Line 10

Raised when the underlying graph store cannot be reached.

QueryError

Bases: SemanticGraphError · Line 14

Raised when a graph query fails.

EntityNotFoundError

Bases: SemanticGraphError · Line 18

Raised when a requested entity does not exist.

VectorSearchError

Bases: SemanticGraphError · Line 22

Raised when vector similarity search fails.

Source

Permalink: https://gitlab.com/MSamy/orchestrata-ultimate-architecture/-/blob/a4cbc2bdf/src/orchestrata_ultimate/semantic_graph/exceptions.py

"""Exceptions for the semantic_graph package."""

from __future__ import annotations


class SemanticGraphError(Exception):
    """Base exception for semantic graph operations."""


class ConnectionError(SemanticGraphError):
    """Raised when the underlying graph store cannot be reached."""


class QueryError(SemanticGraphError):
    """Raised when a graph query fails."""


class EntityNotFoundError(SemanticGraphError):
    """Raised when a requested entity does not exist."""


class VectorSearchError(SemanticGraphError):
    """Raised when vector similarity search fails."""