pub enum SystemError {
Show 23 variants
Database(String),
SessionNotFound(Uuid),
WorkspaceNotFound(Uuid),
CheckpointNotFound(Uuid),
Serialization(String),
Deserialization(String),
VectorDimensionMismatch {
expected: usize,
actual: usize,
},
IndexNotBuilt,
VectorNotFound(u32),
ProductQuantization(String),
EntityExtractionFailed(String),
UpdateTimeout(u64),
GraphUpdateFailed(String),
EmbeddingModel(String),
VectorizationFailed(String),
StorageActorDown,
OperationTimeout(u64),
CircuitBreakerOpen(String),
Configuration(String),
InvalidArgument(String),
Io(Error),
TaskJoin(String),
Internal(String),
}Expand description
System-wide error type for Post-Cortex
Variants§
Database(String)
Database backend error (RocksDB / SurrealDB)
SessionNotFound(Uuid)
Session lookup failed
WorkspaceNotFound(Uuid)
Workspace lookup failed
CheckpointNotFound(Uuid)
Checkpoint lookup failed
Serialization(String)
Serialization encoding failure
Deserialization(String)
Deserialization decoding failure
VectorDimensionMismatch
Vector embedding dimension mismatch
IndexNotBuilt
HNSW index has not been built yet
VectorNotFound(u32)
Vector lookup failed
ProductQuantization(String)
Product quantization compression/decompression error
EntityExtractionFailed(String)
Named entity extraction failure
UpdateTimeout(u64)
Context update processing exceeded its deadline
GraphUpdateFailed(String)
Entity graph mutation failure
EmbeddingModel(String)
Embedding model inference error
VectorizationFailed(String)
Text-to-vector conversion failure
StorageActorDown
Background storage actor terminated unexpectedly
OperationTimeout(u64)
General operation timeout
CircuitBreakerOpen(String)
Circuit breaker is open, rejecting requests
Configuration(String)
Invalid configuration value
InvalidArgument(String)
Caller-supplied input failed validation (referential integrity,
missing required field, unknown enum variant, etc.). Transports
should map this to their invalid_argument equivalent
(Status::invalid_argument for gRPC, structured error for MCP).
Io(Error)
I/O error from the filesystem or network
TaskJoin(String)
Tokio task join failure
Internal(String)
Unspecified internal error for backward compatibility
Trait Implementations§
Source§impl Debug for SystemError
impl Debug for SystemError
Source§impl Display for SystemError
impl Display for SystemError
Source§impl Error for SystemError
impl Error for SystemError
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<DecodeError> for SystemError
Converts a bincode decode error into a deserialization error
impl From<DecodeError> for SystemError
Converts a bincode decode error into a deserialization error
Source§fn from(err: DecodeError) -> SystemError
fn from(err: DecodeError) -> SystemError
Source§impl From<EncodeError> for SystemError
Converts a bincode encode error into a serialization error
impl From<EncodeError> for SystemError
Converts a bincode encode error into a serialization error
Source§fn from(err: EncodeError) -> SystemError
fn from(err: EncodeError) -> SystemError
Source§impl From<Error> for SystemError
impl From<Error> for SystemError
Source§fn from(source: Error) -> SystemError
fn from(source: Error) -> SystemError
Source§impl From<Error> for SystemError
Converts an anyhow error into an internal error for gradual migration
impl From<Error> for SystemError
Converts an anyhow error into an internal error for gradual migration
Source§fn from(err: Error) -> SystemError
fn from(err: Error) -> SystemError
Source§impl From<JoinError> for SystemError
Converts a tokio task join error into a task join error
impl From<JoinError> for SystemError
Converts a tokio task join error into a task join error
Source§fn from(err: JoinError) -> SystemError
fn from(err: JoinError) -> SystemError
Auto Trait Implementations§
impl Freeze for SystemError
impl !RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnsafeUnpin for SystemError
impl !UnwindSafe for SystemError
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> 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> 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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more