pub enum BubbleError {
Graph(GraphError),
Serde(Error),
NodeNotFound(Uuid),
}Expand description
Errors that can arise when working with a ProvenanceGraph.
- WHAT – Enumerates possible failure modes:
- Graph‑level errors (
GraphError). - Serde JSON errors (
serde_json::Error). - A lookup failure when a node identifier cannot be resolved.
- Graph‑level errors (
- HOW – Implements
std::error::Errorvia thethiserror::Errorderive macro, forwarding underlying error sources with#[from]. - WHY – A single error type simplifies error propagation for callers and retains the original context for debugging.
Variants§
Trait Implementations§
Source§impl Debug for BubbleError
impl Debug for BubbleError
Source§impl Display for BubbleError
impl Display for BubbleError
Source§impl Error for BubbleError
impl Error for BubbleError
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<Error> for BubbleError
impl From<Error> for BubbleError
Source§impl From<GraphError> for BubbleError
impl From<GraphError> for BubbleError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BubbleError
impl !RefUnwindSafe for BubbleError
impl Send for BubbleError
impl Sync for BubbleError
impl Unpin for BubbleError
impl !UnwindSafe for BubbleError
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