pub enum MutationError {
Show 23 variants
ParentNotFound(String),
NodeNotFound(String),
NodegroupNotFound(String),
CardNotFound(String),
CardAlreadyExists(String),
NoWidgetForDatatype(String),
WidgetNotFound(String),
JsonError(String),
AliasClash(String),
BranchHasNoRoot,
InvalidSubgraph(String),
InconsistentBranchPublication {
expected: String,
found: Option<String>,
node_id: String,
},
NoBranchNodesFound(String),
InvalidDatatype {
expected: String,
found: String,
node_id: String,
},
FunctionNotFound(String),
CannotDeleteRootNode(String),
NodeHasDependentWidgets(String),
AliasAlreadyExists(String),
InvalidConfig {
alias: String,
error: String,
},
ExtensionNotFound(String),
NoExtensionRegistry(String),
OntologyValidation(OntologyValidationDetail),
Other(String),
}Expand description
Errors that can occur during graph mutation
Variants§
ParentNotFound(String)
Parent node not found
NodeNotFound(String)
Node not found
NodegroupNotFound(String)
Nodegroup not found
CardNotFound(String)
Card not found for nodegroup
CardAlreadyExists(String)
Nodegroup already has a card
NoWidgetForDatatype(String)
No widget for this datatype
WidgetNotFound(String)
Widget not found
JsonError(String)
JSON serialization error
AliasClash(String)
Alias already exists in target graph
BranchHasNoRoot
Branch has no root node
InvalidSubgraph(String)
Invalid subgraph structure
InconsistentBranchPublication
Inconsistent branch publication ID during traversal
NoBranchNodesFound(String)
No nodes found for the branch at target
InvalidDatatype
Invalid datatype for operation
FunctionNotFound(String)
Function mapping not found
CannotDeleteRootNode(String)
Cannot delete root node
NodeHasDependentWidgets(String)
Node has dependent widgets (cannot change type)
AliasAlreadyExists(String)
Alias already exists
InvalidConfig
Invalid node config
ExtensionNotFound(String)
Extension mutation not found in registry
NoExtensionRegistry(String)
Extension mutation used but no registry provided
OntologyValidation(OntologyValidationDetail)
Ontology validation failure
Other(String)
Generic error
Trait Implementations§
Source§impl Clone for MutationError
impl Clone for MutationError
Source§fn clone(&self) -> MutationError
fn clone(&self) -> MutationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MutationError
impl Debug for MutationError
Source§impl Display for MutationError
impl Display for MutationError
Source§impl Error for MutationError
impl Error for MutationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MutationError
impl RefUnwindSafe for MutationError
impl Send for MutationError
impl Sync for MutationError
impl Unpin for MutationError
impl UnsafeUnpin for MutationError
impl UnwindSafe for MutationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more