pub enum HarnessError {
Show 29 variants
MissingAgent,
MissingFlagValue {
flag: String,
},
UnknownFlag {
flag: String,
},
ConfigRead {
path: PathBuf,
source: Error,
},
ConfigParse {
path: PathBuf,
source: Box<Error>,
},
ConfigInvalid {
path: PathBuf,
message: String,
},
CapsuleSerialize {
source: Error,
},
CapsuleWrite {
path: PathBuf,
source: Error,
},
MissingCapsulePath,
DraftSerialize {
source: Error,
},
DraftWrite {
path: PathBuf,
source: Error,
},
CheckpointEmpty,
CheckpointSessionDraftsDirMissing,
NativeMemoryRead {
path: PathBuf,
source: Error,
},
Librarian {
source: LibrarianError,
},
RemoteSyncUnavailable {
message: String,
},
RemoteSyncIo {
path: PathBuf,
source: Error,
},
RemoteSyncConflict {
path: PathBuf,
message: String,
},
MemoryUnavailable {
message: String,
},
RemoteGit {
command: String,
message: String,
},
RemoteSyncLock {
source: WorkspaceLockError,
},
RemoteSyncVerify {
path: PathBuf,
source: Box<VerifyError>,
},
RemoteSyncIntegrity {
path: PathBuf,
message: String,
},
RemoteDrillIntegrity {
path: PathBuf,
message: String,
},
RemoteDrillVerify {
path: PathBuf,
source: Box<VerifyError>,
},
RemoteDrillStore {
path: PathBuf,
source: Box<StoreError>,
},
RemoteDrillRead {
source: Box<ReadError>,
},
WorkspaceLogPrepare {
path: PathBuf,
source: Error,
},
Spawn {
program: String,
source: Error,
},
}Expand description
Errors returned by harness argument parsing or child launch.
Variants§
MissingAgent
No child agent was supplied.
MissingFlagValue
A Mimir flag requiring a value was the last argument.
UnknownFlag
A Mimir flag before the agent name is not supported.
ConfigRead
Explicit config file path could not be read.
ConfigParse
Config TOML could not be parsed.
Fields
ConfigInvalid
Config TOML used the wrong value type.
Fields
CapsuleSerialize
Session capsule could not be serialized.
CapsuleWrite
Session capsule could not be written.
Fields
MissingCapsulePath
Launch plan was not fully prepared before writing session artifacts.
DraftSerialize
Post-session draft could not be serialized.
DraftWrite
Post-session draft could not be written.
Fields
CheckpointEmpty
Checkpoint helper was invoked without a note body.
CheckpointSessionDraftsDirMissing
Checkpoint helper was invoked outside a wrapped session.
NativeMemoryRead
Native memory source could not be read.
Fields
Librarian
Librarian handoff could not be completed.
Fields
source: LibrarianErrorUnderlying librarian error.
Remote sync could not be prepared or is unsupported.
RemoteSyncIo
Remote sync filesystem operation failed.
Fields
RemoteSyncConflict
Remote sync found conflicting local and remote state.
Fields
Operator memory command could not complete.
RemoteGit
Git failed while preparing or publishing the recovery mirror.
RemoteSyncLock
Remote sync could not acquire the workspace lock.
Fields
source: WorkspaceLockErrorUnderlying workspace-lock error.
RemoteSyncVerify
Remote sync could not verify a canonical log before/after copy.
Fields
source: Box<VerifyError>Underlying verify error.
RemoteSyncIntegrity
Remote sync found corrupt canonical-log bytes.
Fields
RemoteDrillIntegrity
Restore drill integrity verification failed.
Fields
RemoteDrillVerify
Restore drill could not verify the local canonical log.
Fields
source: Box<VerifyError>Underlying verify error.
RemoteDrillStore
Restore drill could not reopen the restored store.
Fields
source: Box<StoreError>Underlying store error.
RemoteDrillRead
Restore drill read-path sanity query failed.
WorkspaceLogPrepare
Workspace log parent directory could not be prepared.
Spawn
The child process could not be launched.
Trait Implementations§
Source§impl Debug for HarnessError
impl Debug for HarnessError
Source§impl Display for HarnessError
impl Display for HarnessError
Source§impl Error for HarnessError
impl Error for HarnessError
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()