pub enum StoreError {
Show 16 variants
Sqlite(Error),
Io(Error),
Serde(Error),
UnknownRun(String),
DuplicateRun(String),
NoCheckpoint(String),
Fold(FoldError),
StaleCheckpoint {
run_id: String,
materialized_seq: u64,
log_seq: u64,
},
CheckpointMismatch {
run_id: String,
log_seq: u64,
materialized: String,
rebuilt: String,
},
StatusMismatch {
run_id: String,
stored: String,
folded: String,
},
Corrupt {
run_id: String,
reason: String,
},
HumanResponseRejected {
run_id: String,
request_id: String,
reason: HumanResponseRejection,
},
UnknownStepInstance {
run_id: String,
path: String,
},
AmbiguousStep {
run_id: String,
step: String,
candidates: Vec<String>,
},
JournalModeNotWal {
root: String,
mode: String,
},
BadRunPath {
input: String,
message: String,
},
}Expand description
Store-level error: SQLite / filesystem / serialization failures, fold
errors surfaced through the write path, and the self-check verdicts of
crate::Store::verify_checkpoint.
Variants§
Sqlite(Error)
SQLite error.
Io(Error)
Filesystem error (evidence area, store directory).
Serde(Error)
JSON (de)serialization error.
UnknownRun(String)
The referenced run does not exist.
DuplicateRun(String)
begin_run was called with a run id that already exists.
NoCheckpoint(String)
The run has no materialized checkpoint row yet (no events appended).
Fold(FoldError)
A fold error (see FoldError for the rollback semantics on the
write path).
StaleCheckpoint
The checkpoint row lags the log head — rule 2 of 07 §3.3 (same- transaction materialization) was violated; a store-layer bug.
Fields
CheckpointMismatch
The materialized view differs from the full-log refold — I1’s runtime self-check tripped; a store-layer bug (07 §3.3).
Fields
StatusMismatch
The run.status column differs from the folded status.
Fields
Corrupt
A stored row failed to parse back into its typed shape.
HumanResponseRejected
crate::Store::submit_human_response refused the response.
Typed and side-effect free: a rejected response never becomes a
humanResponded event (06 §4.3 — bad data does not enter the
ledger).
Fields
reason: HumanResponseRejectionWhy the arbitration refused it.
UnknownStepInstance
A locate/dossier query referenced a step instance the ledger never entered (spine §9: locate resolves recorded instances only).
Fields
AmbiguousStep
A bare step id matched several instances (iterations/hook entries); the caller must pick one canonical path.
Fields
JournalModeNotWal
PRAGMA journal_mode = WAL did not take at open (e.g. a network or
read-only filesystem): the durability contract (actionIntent fsync
under synchronous=FULL in WAL) cannot be honoured, so the store
refuses to open rather than run silently in another journal mode.
Fields
BadRunPath
A canonical run-path string failed to parse (spine §9 grammar).
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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()