#[non_exhaustive]pub enum MemoryError {
Show 19 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),
Ingest(String),
ValidationRejected(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 (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
Ingest(String)
An error during zeph knowledge ingest (spec-067).
Covers path-validation failures, unsupported source kinds, and per-file ingest errors reported by the notes-sink pipeline.
ValidationRejected(String)
The post-extract validator rejected this extraction result.
Returned by extract_and_store when the post_extract_validator callback returns
Err. The caller (ingest_documents) converts this into DocOutcome::Rejected
so the document is counted separately from hard failures.
Implementations§
Source§impl MemoryError
impl MemoryError
Sourcepub fn is_foreign_key_violation(&self) -> bool
pub fn is_foreign_key_violation(&self) -> bool
Returns true when this error is a database foreign-key constraint violation.
Used to distinguish silent-drop-worthy edge/entity write failures (e.g. a stale
cross-database entity id) from ordinary transient DB errors, so callers can log the
former at WARN instead of DEBUG (#5801).
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<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<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 !RefUnwindSafe for MemoryError
impl !UnwindSafe for MemoryError
impl Freeze for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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::Request