Skip to main content

StoreError

Enum StoreError 

Source
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

§path: PathBuf

Path involved in the failed operation.

§source: Error

Underlying operating-system error.

§

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.

Fields

§field: &'static str

Field being converted.

§value: i128

Invalid signed value.

§

InvalidBackup

Backup failed validation or aliases the destination.

Fields

§path: PathBuf

Backup path.

§reason: String

Actionable validation reason.

§

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

§batch_snapshot_id: String

Graph snapshot being published.

§community_snapshot_id: String

Graph snapshot named by the community analysis.

§

DuplicateCommunityId

A community identifier occurs more than once in one analysis.

Fields

§snapshot_id: String

Graph snapshot being validated.

§community_id: String

Repeated community identifier.

§

DuplicateCommunityMembership

A node occurs more than once in one community membership list.

Fields

§snapshot_id: String

Graph snapshot being validated.

§community_id: String

Community containing the repeated member.

§node_id: String

Repeated member node.

§

CommunityMembershipNodeMissing

A community membership references a node absent from its graph snapshot.

Fields

§snapshot_id: String

Graph snapshot being validated.

§community_id: String

Community containing the invalid member.

§node_id: String

Missing graph node.

§

CommunityJsonTooLarge

A variable JSON payload exceeds its schema bound.

Fields

§field: &'static str

Logical JSON field.

§actual_bytes: usize

Encoded UTF-8 byte length.

§max_bytes: usize

Maximum accepted byte length.

§

MalformedStoredData

Persisted rows cannot be decoded into a valid domain value.

Fields

§entity: String

Stored entity being decoded.

§reason: String

Specific invariant or decoding failure.

§

InvalidPersistenceRecord(String)

A store-local persistence record violates safety, size, or reference invariants.

Trait Implementations§

Source§

impl Debug for StoreError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StoreError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for StoreError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for StoreError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for StoreError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.