pub enum StateError {
Show 31 variants
Io(Error),
Store(StoreError),
Node(NodeError),
Tree(TreeError),
BranchCommit(BranchCommitError),
BranchPolicy(BranchPolicyError),
Merge(MergeError),
BranchRef(BranchRefError),
Branch(BranchError),
Snapshot(SnapshotError),
Checkout(CheckoutError),
CapabilityBinding {
handle_component: ComponentId,
checker_component: ComponentId,
},
CapabilityDenied(CapabilityDenied),
CapabilityCheck(CapabilityCheckError),
DanglingReference {
target: ComponentId,
state: ReferenceTargetState,
},
SynchronizationPoisoned,
SchemaNotDeclared {
component: ComponentId,
},
SchemaAlreadyDeclared {
component: ComponentId,
},
UnsupportedPolicy {
policy: MergePolicy,
},
ResolverNotRegistered {
name: String,
},
ResolverAlreadyRegistered {
name: String,
},
InstallInProgress {
component: ComponentId,
},
ArchiveInProgress {
component: ComponentId,
},
WorkInProgress {
component: ComponentId,
},
AlreadyActive {
component: ComponentId,
},
NotActive {
component: ComponentId,
},
StaleHandle {
component: ComponentId,
held: u64,
current: u64,
},
WorkNotFound {
branch: String,
},
ForeignWorkHandle,
CorruptRecord {
detail: String,
},
Reconcile(ReconcileInconsistency),
}Expand description
Typed failures from component storage, preserving every substrate error.
Variants§
Io(Error)
Filesystem setup failed outside a haematite operation.
Store(StoreError)
Node-store operation failed.
Node(NodeError)
Empty-node construction failed.
Tree(TreeError)
Tree traversal failed.
BranchCommit(BranchCommitError)
Branch commit/lifecycle failed outside a more specific category.
BranchPolicy(BranchPolicyError)
Engine namespace policy refused an operation, retaining names and kinds.
Merge(MergeError)
Engine content merge failed.
BranchRef(BranchRefError)
Durable branch-ref operation failed.
Branch(BranchError)
Branch handle operation failed.
Snapshot(SnapshotError)
Snapshot registry operation failed.
Checkout(CheckoutError)
Historical checkout failed.
CapabilityBinding
The supplied checker belongs to a different component than the handle.
Fields
handle_component: ComponentIdComponent incarnation represented by the storage handle.
checker_component: ComponentIdComponent whose authority the supplied checker would evaluate.
CapabilityDenied(CapabilityDenied)
A fresh check denied this resolution, preserved verbatim from frame-core.
CapabilityCheck(CapabilityCheckError)
A fresh check could not produce or publish its verdict.
DanglingReference
The named target has no active namespace to resolve.
Fields
target: ComponentIdComponent named by the link.
state: ReferenceTargetStateDurable target state observed after authority was granted.
SynchronizationPoisoned
Internal synchronization was poisoned by a prior panic.
SchemaNotDeclared
No schema was declared before install.
Fields
component: ComponentIdComponent whose install lacks a declaration.
SchemaAlreadyDeclared
A schema was already fixed for this component’s current lifecycle.
Fields
component: ComponentIdComponent whose pending declaration would be replaced.
UnsupportedPolicy
The published engine cannot execute the declared vocabulary entry.
Fields
policy: MergePolicyPolicy refused at schema declaration.
ResolverNotRegistered
A custom policy named a resolver absent at declaration time.
ResolverAlreadyRegistered
A resolver registration would silently replace an existing function.
InstallInProgress
An install is already executing for this identity.
Fields
component: ComponentIdComponent with an active install transition.
ArchiveInProgress
An archive is already executing for this identity.
Fields
component: ComponentIdComponent with an active archive transition.
WorkInProgress
A fork or merge is already executing for this identity.
Fields
component: ComponentIdComponent with an active Work operation.
AlreadyActive
Install was requested for an active namespace.
Fields
component: ComponentIdComponent whose namespace is already Active.
NotActive
The component has no active namespace.
Fields
component: ComponentIdComponent for which active storage was required.
StaleHandle
A handle’s captured incarnation no longer owns the branch name.
Fields
component: ComponentIdComponent whose name was reused.
WorkNotFound
A requested Work branch is not outstanding.
ForeignWorkHandle
A Work handle came from another store, component, or incarnation.
CorruptRecord
A branch/archive key did not have Frame’s fixed-width encoding.
Reconcile(ReconcileInconsistency)
Boot found a durable state it cannot safely repair.
Trait Implementations§
Source§impl Debug for StateError
impl Debug for StateError
Source§impl Display for StateError
impl Display for StateError
Source§impl Error for StateError
impl Error for StateError
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()