pub enum RuntimeError {
Memory(MemoryError),
InvalidConfig {
field: &'static str,
reason: String,
},
EntityNotFound {
id: String,
},
RegistryFull {
capacity: usize,
},
EntityCollision {
name: String,
existing_id: EntityId,
new_id: EntityId,
},
ProjectionUnavailable {
id: String,
reason: String,
},
Adapter(String),
ScopeNotFullyEnforced {
unpushed_dimensions: Vec<String>,
},
TemporalNotSupported {
temporal_expr: String,
},
}Expand description
Error types for the knowledge-runtime crate.
All errors flow through RuntimeError. Upstream MemoryError converts
automatically via #[from].
Variants§
Memory(MemoryError)
Propagated from the upstream semantic-memory store.
InvalidConfig
Configuration is invalid.
EntityNotFound
Entity not found in registry.
RegistryFull
Entity registry is full.
EntityCollision
COR-005: Entity name/alias collision with an existing entity.
A projection is stale or missing and cannot serve the request.
Adapter(String)
Adapter failed to connect or communicate with the backing store.
ScopeNotFullyEnforced
Scope dimensions beyond namespace were requested but cannot be fully enforced by the upstream adapter. Results may include items outside the requested domain/workspace_id/repo_id.
Fields
TemporalNotSupported
Temporal search was requested but results lack temporal metadata (valid_from/valid_to). In strict temporal mode, this is an error rather than a silent downgrade.
Implementations§
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<MemoryError> for RuntimeError
impl From<MemoryError> for RuntimeError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
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> 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.