pub enum SessionError {
Show 13 variants
IoError(Error),
ArtifactCleanup {
path: PathBuf,
source: Error,
removed: Vec<PathBuf>,
remaining: Vec<PathBuf>,
},
IndexCleanup {
session_id: Uuid,
message: String,
},
OrphanReconciliation {
path: PathBuf,
message: String,
},
InvalidJson(String),
SessionNotFound(Uuid),
EntryNotFound(String),
BranchNotFound(String),
ParseError(String),
LockPoisoned,
InvalidExternalId(String),
DurableTurn(String),
DurableTurnConflict {
turn_id: String,
existing: String,
requested: String,
},
}Expand description
Errors that can occur during session operations.
Variants§
IoError(Error)
An I/O error occurred (file read/write, directory creation, etc.).
ArtifactCleanup
Removing one artifact from a Session-owned artifact set failed.
Fields
IndexCleanup
Session index cleanup failed while the transcript remained discoverable.
Fields
OrphanReconciliation
Orphan-sidecar validation or SQLite ownership probing failed.
Fields
InvalidJson(String)
A line in the JSONL file is not valid JSON.
SessionNotFound(Uuid)
The requested session was not found.
EntryNotFound(String)
The requested entry ID was not found in the session.
BranchNotFound(String)
The requested branch ID was not found.
ParseError(String)
Failed to parse a session file.
LockPoisoned
A per-session internal mutex was poisoned by a panicking thread.
InvalidExternalId(String)
A host-provided external session identifier is invalid.
DurableTurn(String)
A durable turn cannot be committed because its persisted state is inconsistent.
DurableTurnConflict
A turn was already finalized with a different outcome or payload.
Trait Implementations§
Source§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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()