pub enum IjimaError {
Duplicate {
detail: String,
},
NotFound {
detail: String,
},
Store {
detail: String,
},
InvalidInput {
detail: String,
},
Schema {
detail: String,
},
Mining {
detail: String,
},
Transport {
detail: String,
},
}Expand description
The single error enum returned by every fallible Ijima operation.
Variants follow the IA convention of carrying structured context rather than opaque strings, so callers can react to specific failure modes (a duplicate write, a missing entity, an unrunnable miner).
Variants§
Duplicate
A memory write was rejected because equivalent content already exists in the palace (content-hash or semantic dedup hit).
NotFound
A referenced entity, memory, or session was not found.
Store
The backing store returned an error (SQLite, vector index, file I/O).
InvalidInput
A harness-supplied identifier or payload failed validation.
Schema
The schema migration/import path failed.
Mining
The mining engine could not complete an extraction pass.
Transport
A transport-layer failure (HTTP client/server, serialization).
Implementations§
Source§impl IjimaError
impl IjimaError
Sourcepub fn duplicate(detail: impl Into<String>) -> Self
pub fn duplicate(detail: impl Into<String>) -> Self
Construct a [Duplicate] error with the given detail string.
Sourcepub fn not_found(detail: impl Into<String>) -> Self
pub fn not_found(detail: impl Into<String>) -> Self
Construct a [NotFound] error with the given detail string.
Sourcepub fn invalid_input(detail: impl Into<String>) -> Self
pub fn invalid_input(detail: impl Into<String>) -> Self
Construct an [InvalidInput] error with the given detail string.
Trait Implementations§
Source§impl Debug for IjimaError
impl Debug for IjimaError
Source§impl Display for IjimaError
impl Display for IjimaError
Source§impl Error for IjimaError
impl Error for IjimaError
1.30.0 · 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()