pub enum GraphError {
Show 28 variants
UnknownNode(NodeId),
UnknownScope(ScopeId),
DuplicateDependency(NodeId),
SelfDependency(NodeId),
NodeAlreadyAttached(NodeId),
ScopeAlreadyClosed(ScopeId),
ScopeClosed(ScopeId),
NestedTransaction,
TransactionClosed(TransactionId),
NotInputNode(NodeId),
NotDerivedNode(NodeId),
NotCollectionNode(NodeId),
WrongInputType(NodeId),
WrongDerivedType(NodeId),
WrongCollectionType(NodeId),
UnknownOutput(OutputKey),
OutputFailed(OutputKey, OutputError),
PlanFailed(ScopeId, PlanError),
ResourceScopeMismatch(ScopeId),
ResourceNotOwned {
key: ResourceKey,
scope: ScopeId,
command_kind: ResourceCommandKind,
},
ResourcePayloadConflict(ResourcePayloadConflict),
CycleDetected(NodeId),
CollectionDependencyNotAllowed(NodeId),
DeriveFailed(NodeId, DeriveError),
CollectionFailed(NodeId, DeriveError),
FullRecomputeMismatch(NodeId),
FullRecomputeResourceMismatch(FullRecomputeResourceMismatch),
FullRecomputeOutputMismatch(FullRecomputeOutputMismatch),
}Expand description
Errors for graph metadata and input transaction operations.
Variants§
UnknownNode(NodeId)
A node id is not present in the graph.
UnknownScope(ScopeId)
A scope id is not present in the graph.
DuplicateDependency(NodeId)
A dependency list contains the same node more than once.
SelfDependency(NodeId)
A node depends on itself.
NodeAlreadyAttached(NodeId)
A node already has an owning scope.
ScopeAlreadyClosed(ScopeId)
A scope is closed and cannot accept new nodes.
ScopeClosed(ScopeId)
A scope was already closed.
NestedTransaction
A transaction is already open.
TransactionClosed(TransactionId)
A transaction was already closed and cannot be reused.
NotInputNode(NodeId)
A node is not an input node.
NotDerivedNode(NodeId)
A node is not a derived node.
NotCollectionNode(NodeId)
A node is not a collection node.
WrongInputType(NodeId)
An input write used the wrong value type for the node.
WrongDerivedType(NodeId)
A derived read used the wrong value type for the node.
WrongCollectionType(NodeId)
A collection read used the wrong key or value type for the node.
UnknownOutput(OutputKey)
An output key is not present in the graph.
OutputFailed(OutputKey, OutputError)
A materialized output computation failed.
PlanFailed(ScopeId, PlanError)
A resource planner failed.
ResourceScopeMismatch(ScopeId)
A resource command used a scope outside its registered planner scope.
ResourceNotOwned
A resource command required an existing owned resource.
Fields
key: ResourceKeyResource key that was required to be owned.
command_kind: ResourceCommandKindKind of resource command that required ownership.
ResourcePayloadConflict(ResourcePayloadConflict)
An Open attempted to join a shared resource with a different payload.
CycleDetected(NodeId)
A dependency cycle was detected.
CollectionDependencyNotAllowed(NodeId)
A scalar derived node declared a collection dependency.
DeriveFailed(NodeId, DeriveError)
A pure derive function failed.
CollectionFailed(NodeId, DeriveError)
A pure collection function failed.
FullRecomputeMismatch(NodeId)
Incremental derived state differs from full recompute.
FullRecomputeResourceMismatch(FullRecomputeResourceMismatch)
Incremental resource-owner state differs from full recompute.
FullRecomputeOutputMismatch(FullRecomputeOutputMismatch)
Incremental materialized-output state differs from full recompute.
Implementations§
Source§impl GraphError
impl GraphError
Sourcepub const fn category(&self) -> ErrorCategory
pub const fn category(&self) -> ErrorCategory
Returns this error’s top-level category.
Sourcepub const fn audit_event(&self) -> ErrorAuditEvent
pub const fn audit_event(&self) -> ErrorAuditEvent
Returns a deterministic audit event for this error.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§fn clone(&self) -> GraphError
fn clone(&self) -> GraphError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
impl Eq for GraphError
Source§impl Error for GraphError
impl Error for GraphError
1.30.0 · 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()
Source§impl PartialEq for GraphError
impl PartialEq for GraphError
Source§fn eq(&self, other: &GraphError) -> bool
fn eq(&self, other: &GraphError) -> bool
self and other values to be equal, and is used by ==.