1#[derive(Debug, thiserror::Error)]
5pub enum MemoryError {
6 #[error("database error: {0}")]
7 Sqlx(#[from] zeph_db::SqlxError),
8
9 #[error("database error: {0}")]
10 Db(#[from] zeph_db::DbError),
11
12 #[error("Qdrant error: {0}")]
13 Qdrant(#[from] Box<qdrant_client::QdrantError>),
14
15 #[error("vector store error: {0}")]
16 VectorStore(#[from] crate::vector_store::VectorStoreError),
17
18 #[error("LLM error: {0}")]
19 Llm(#[from] zeph_llm::LlmError),
20
21 #[error("JSON error: {0}")]
22 Json(#[from] serde_json::Error),
23
24 #[error("integer conversion: {0}")]
25 IntConversion(#[from] std::num::TryFromIntError),
26
27 #[error("snapshot error: {0}")]
28 Snapshot(String),
29
30 #[error("I/O error: {0}")]
31 Io(#[from] std::io::Error),
32
33 #[error("graph store error: {0}")]
34 GraphStore(String),
35
36 #[error("invalid input: {0}")]
37 InvalidInput(String),
38
39 #[error("{0}")]
40 Other(String),
41}