#[non_exhaustive]pub enum GraphError {
Show 17 variants
Config(ConfigError),
DuplicateNode(String),
DuplicateEdge(String),
MissingNode {
edge: String,
node: String,
suggestion: Option<String>,
},
MissingParent {
node: String,
parent: String,
suggestion: Option<String>,
},
ParentNotContainer(String),
ParentCycle(String),
CrossScopeEdge {
edge: String,
source_node: String,
target: String,
},
Cycle {
scope: String,
node: String,
},
NoEntry {
scope: String,
},
MultipleEntries {
scope: String,
nodes: Vec<String>,
},
Empty,
Unserializable(String),
InvalidNodeId {
id: String,
reason: String,
},
UnknownReference {
node: String,
selector: String,
namespace: String,
suggestion: Option<String>,
},
InvalidField {
node: String,
path: String,
message: String,
},
UnknownHandle {
edge: String,
message: String,
},
}Expand description
Graph construction / validation error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Config(ConfigError)
DuplicateNode(String)
DuplicateEdge(String)
MissingNode
MissingParent
ParentNotContainer(String)
ParentCycle(String)
CrossScopeEdge
Cycle
NoEntry
MultipleEntries
Empty
Unserializable(String)
InvalidNodeId
UnknownReference
InvalidField
A config field the node kind’s catalog schema does not allow, or a required one that is missing (strict nodes only).
UnknownHandle
An edge whose handle the source node never selects.
Trait Implementations§
Source§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
Source§impl Error for GraphError
impl Error for GraphError
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()
Source§impl From<ConfigError> for GraphError
impl From<ConfigError> for GraphError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<GraphError> for Error
impl From<GraphError> for Error
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for GraphError
impl Freeze for GraphError
impl Move for GraphError
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnsafeUnpin for GraphError
impl UnwindSafe for GraphError
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