pub enum MenteError {
MemoryNotFound(MemoryId),
Storage(String),
Index(String),
Query(String),
Serialization(String),
CapacityExceeded(String),
EmbeddingDimensionMismatch {
got: usize,
expected: usize,
},
PermissionDenied {
agent_id: AgentId,
space_id: SpaceId,
},
ResourceExhausted(String),
Io(Error),
}Expand description
Top-level error type for MenteDB operations.
Variants§
MemoryNotFound(MemoryId)
The requested memory was not found.
Storage(String)
A storage-layer error occurred.
Index(String)
An index-layer error occurred.
Query(String)
A query-layer error occurred.
Serialization(String)
A serialization or deserialization error occurred.
CapacityExceeded(String)
A capacity limit was exceeded.
EmbeddingDimensionMismatch
The embedding dimension does not match the expected dimension.
PermissionDenied
The agent does not have permission to access the memory space.
Fields
ResourceExhausted(String)
A resource limit has been exhausted.
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for MenteError
impl Debug for MenteError
Source§impl Display for MenteError
impl Display for MenteError
Source§impl Error for MenteError
impl Error for MenteError
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()
Auto Trait Implementations§
impl Freeze for MenteError
impl !RefUnwindSafe for MenteError
impl Send for MenteError
impl Sync for MenteError
impl Unpin for MenteError
impl UnsafeUnpin for MenteError
impl !UnwindSafe for MenteError
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