pub enum FlowError {
DanglingReference {
flow_id: String,
},
MultiNamespace {
namespaces: Vec<String>,
},
}Expand description
F3: structured errors for the two failure modes this module can produce.
Previously both were a bare String, so every one of the eight callers
could only match on substring content if it wanted to distinguish them.
From<FlowError> for String is implemented below so every existing
collect_flows(graph)? / model_namespace(graph)? call site (all
currently inside functions returning Result<_, String>) keeps
compiling unchanged.
Variants§
DanglingReference
A flow references an entity or resource id that doesn’t exist in the graph (M4’s loud dangling-reference policy).
MultiNamespace
The graph declares more than one namespace across its entities and resources (M5).
Trait Implementations§
impl Eq for FlowError
Source§impl Error for FlowError
impl Error for FlowError
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()
impl StructuralPartialEq for FlowError
Auto Trait Implementations§
impl Freeze for FlowError
impl RefUnwindSafe for FlowError
impl Send for FlowError
impl Sync for FlowError
impl Unpin for FlowError
impl UnsafeUnpin for FlowError
impl UnwindSafe for FlowError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.