pub enum MemoryError {
Show 17 variants
Sqlx(SqlxError),
Db(DbError),
Qdrant(Box<QdrantError>),
VectorStore(VectorStoreError),
Llm(LlmError),
Json(Error),
IntConversion(TryFromIntError),
Snapshot(String),
Io(Error),
GraphStore(String),
InvalidInput(String),
LockPoisoned(String),
Other(String),
Timeout(String),
SupersedeCycle(i64),
SupersedeDepthExceeded(i64),
Promotion(String),
}Expand description
Top-level error type for all zeph-memory operations.
Wraps database, vector-store, LLM, and serialization errors into a single type
consumed by callers in zeph-core.
§Examples
use zeph_memory::MemoryError;
fn demo(e: MemoryError) -> String {
e.to_string()
}Variants§
Sqlx(SqlxError)
Db(DbError)
Qdrant(Box<QdrantError>)
VectorStore(VectorStoreError)
Llm(LlmError)
Json(Error)
IntConversion(TryFromIntError)
Snapshot(String)
Io(Error)
GraphStore(String)
InvalidInput(String)
LockPoisoned(String)
A mutex or RwLock was poisoned by a panicking thread.
This indicates a programming error (a thread panicked while holding the lock). The inner string describes which lock was poisoned.
Other(String)
Catch-all for errors that do not yet have a specific typed variant.
§Deprecation
Prefer adding a typed variant over using Other. This variant exists for
backward compatibility and will be removed once all callsites are migrated.
Timeout(String)
SupersedeCycle(i64)
Returned when inserting a supersede pointer would form a cycle in the chain.
SupersedeDepthExceeded(i64)
Returned when the supersede chain depth would exceed crate::graph::conflict::SUPERSEDE_DEPTH_CAP.
Promotion(String)
A promotion-scan or promote error (Feature A, #3305).
Wraps errors from clustering, skill generation, evaluator calls, or disk writes.
Trait Implementations§
Source§impl Debug for MemoryError
impl Debug for MemoryError
Source§impl Display for MemoryError
impl Display for MemoryError
Source§impl Error for MemoryError
impl Error for MemoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Box<QdrantError>> for MemoryError
impl From<Box<QdrantError>> for MemoryError
Source§fn from(source: Box<QdrantError>) -> Self
fn from(source: Box<QdrantError>) -> Self
Source§impl From<DbError> for MemoryError
impl From<DbError> for MemoryError
Source§impl From<Error> for MemoryError
impl From<Error> for MemoryError
Source§impl From<Error> for MemoryError
impl From<Error> for MemoryError
Source§impl From<LlmError> for MemoryError
impl From<LlmError> for MemoryError
Source§impl From<MemoryError> for DocumentError
impl From<MemoryError> for DocumentError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Source§impl From<Error> for MemoryError
impl From<Error> for MemoryError
Source§impl From<TryFromIntError> for MemoryError
impl From<TryFromIntError> for MemoryError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Source§impl From<VectorStoreError> for MemoryError
impl From<VectorStoreError> for MemoryError
Source§fn from(source: VectorStoreError) -> Self
fn from(source: VectorStoreError) -> Self
Auto Trait Implementations§
impl Freeze for MemoryError
impl !RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnsafeUnpin for MemoryError
impl !UnwindSafe for MemoryError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.