1#[derive(Debug, thiserror::Error)]
2pub enum MemoryError {
3 #[error("database error: {0}")]
4 Sqlite(#[from] sqlx::Error),
5
6 #[error("Qdrant error: {0}")]
7 Qdrant(#[from] Box<qdrant_client::QdrantError>),
8
9 #[error("vector store error: {0}")]
10 VectorStore(#[from] crate::vector_store::VectorStoreError),
11
12 #[error("migration failed: {0}")]
13 Migration(#[from] sqlx::migrate::MigrateError),
14
15 #[error("LLM error: {0}")]
16 Llm(#[from] zeph_llm::LlmError),
17
18 #[error("JSON error: {0}")]
19 Json(#[from] serde_json::Error),
20
21 #[error("integer conversion: {0}")]
22 IntConversion(#[from] std::num::TryFromIntError),
23
24 #[error("{0}")]
25 Other(String),
26}