pub enum CodememError {
Show 15 variants
Storage(String),
Vector(String),
Embedding(String),
Hook(String),
InvalidMemoryType(String),
InvalidRelationshipType(String),
InvalidNodeKind(String),
NotFound(String),
InvalidInput(String),
Duplicate(String),
Internal(String),
Config(String),
LockPoisoned(String),
Io(Error),
Json(Error),
}Expand description
Unified error type for Codemem.
Variants like Storage(String) intentionally carry a stringified error
message rather than the original typed error. This avoids coupling
codemem-core to storage-specific dependencies (e.g. rusqlite),
keeping the core crate lightweight and backend-agnostic.
Variants§
Storage(String)
Vector(String)
Embedding(String)
Hook(String)
InvalidMemoryType(String)
InvalidRelationshipType(String)
InvalidNodeKind(String)
NotFound(String)
InvalidInput(String)
Duplicate(String)
Internal(String)
Config(String)
LockPoisoned(String)
Io(Error)
Json(Error)
Trait Implementations§
Source§impl Debug for CodememError
impl Debug for CodememError
Source§impl Display for CodememError
impl Display for CodememError
Source§impl Error for CodememError
impl Error for CodememError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for CodememError
impl From<Error> for CodememError
Source§impl From<Error> for CodememError
impl From<Error> for CodememError
Auto Trait Implementations§
impl Freeze for CodememError
impl !RefUnwindSafe for CodememError
impl Send for CodememError
impl Sync for CodememError
impl Unpin for CodememError
impl UnsafeUnpin for CodememError
impl !UnwindSafe for CodememError
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
Mutably borrows from an owned value. Read more