Skip to content

Exceptions

vector_search_study.exceptions

Package-specific exceptions.

VectorSearchStudyError

Bases: ValueError

Raised when Vector Search Study cannot complete an operation.

Source code in src/vector_search_study/exceptions.py
4
5
class VectorSearchStudyError(ValueError):
    """Raised when Vector Search Study cannot complete an operation."""

InvalidVectorDataError

Bases: VectorSearchStudyError

Raised when a corpus or query matrix violates the vector contract.

Source code in src/vector_search_study/exceptions.py
8
9
class InvalidVectorDataError(VectorSearchStudyError):
    """Raised when a corpus or query matrix violates the vector contract."""

InvalidSearchParameterError

Bases: VectorSearchStudyError

Raised when a search parameter is outside its supported range.

Source code in src/vector_search_study/exceptions.py
12
13
class InvalidSearchParameterError(VectorSearchStudyError):
    """Raised when a search parameter is outside its supported range."""

BackendUnavailableError

Bases: VectorSearchStudyError

Raised when an optional search backend is not installed.

Source code in src/vector_search_study/exceptions.py
16
17
class BackendUnavailableError(VectorSearchStudyError):
    """Raised when an optional search backend is not installed."""

UnsupportedObjectiveError

Bases: VectorSearchStudyError

Raised when a backend cannot exactly implement a search objective.

Source code in src/vector_search_study/exceptions.py
20
21
class UnsupportedObjectiveError(VectorSearchStudyError):
    """Raised when a backend cannot exactly implement a search objective."""