pub enum StoreError {
Show 21 variants
Sqlite(Error),
Serialization(Error),
CurrentSnapshotMissing(String),
RegistryIncomplete(String),
Io {
path: PathBuf,
source: Error,
},
InvalidSchema,
LockHeld(PathBuf),
IntegerOutOfRange {
field: &'static str,
value: i128,
},
InvalidBackup {
path: PathBuf,
reason: String,
},
OperationCleanupFailed {
operation: Box<StoreError>,
cleanup: Box<StoreError>,
},
InvalidSearchQuery(String),
InvalidGraphSnapshot(String),
SnapshotMissing(String),
CommunitySnapshotMissing(String),
CommunitySnapshotMismatch {
batch_snapshot_id: String,
community_snapshot_id: String,
},
DuplicateCommunityId {
snapshot_id: String,
community_id: String,
},
DuplicateCommunityMembership {
snapshot_id: String,
community_id: String,
node_id: String,
},
CommunityMembershipNodeMissing {
snapshot_id: String,
community_id: String,
node_id: String,
},
CommunityJsonTooLarge {
field: &'static str,
actual_bytes: usize,
max_bytes: usize,
},
MalformedStoredData {
entity: String,
reason: String,
},
InvalidPersistenceRecord(String),
}Expand description
Error returned by the SQLite adapter.
Variants§
Sqlite(Error)
SQLite operation failed.
Serialization(Error)
A domain tag could not be encoded or decoded.
CurrentSnapshotMissing(String)
No current snapshot exists for a workspace.
RegistryIncomplete(String)
Persisted workspace registry is absent or incomplete.
Io
Filesystem operation failed.
Fields
InvalidSchema
A database does not match the only schema supported by this binary.
LockHeld(PathBuf)
Another writer owns a non-stale lock.
IntegerOutOfRange
Integer cannot be represented by the target domain type.
InvalidBackup
Backup failed validation or aliases the destination.
OperationCleanupFailed
An operation failed and its partial database artifacts could not be removed.
Fields
operation: Box<StoreError>Error that interrupted the operation.
cleanup: Box<StoreError>Error that prevented cleanup of partial artifacts.
InvalidSearchQuery(String)
Bounded FTS query is empty or has an invalid limit.
InvalidGraphSnapshot(String)
A graph snapshot violates identity, reference, or safe-metadata invariants.
SnapshotMissing(String)
A requested immutable graph snapshot does not exist.
CommunitySnapshotMissing(String)
A requested graph snapshot has no persisted community analysis.
CommunitySnapshotMismatch
Community analysis targets a different graph snapshot.
Fields
DuplicateCommunityId
A community identifier occurs more than once in one analysis.
Fields
DuplicateCommunityMembership
A node occurs more than once in one community membership list.
Fields
CommunityMembershipNodeMissing
A community membership references a node absent from its graph snapshot.
Fields
CommunityJsonTooLarge
A variable JSON payload exceeds its schema bound.
Fields
MalformedStoredData
Persisted rows cannot be decoded into a valid domain value.
Fields
InvalidPersistenceRecord(String)
A store-local persistence record violates safety, size, or reference invariants.
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()