pub enum GraphError {
Io(Error),
CommandFailed(String),
SerdeJson(Error),
Other(String),
}Expand description
Enumeration of possible errors that can arise while interacting with the DoltGraph.
Each variant wraps an underlying error source, making it easier for callers to understand the failure context and decide on remedial actions.
Variants§
Io(Error)
Propagates I/O errors from the standard library (e.g., filesystem access).
CommandFailed(String)
Represents a failure when executing a Dolt command.
SerdeJson(Error)
Propagates JSON (de)serialization errors from serde_json.
Other(String)
A generic catch‑all for errors that don’t fit the other categories.
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<Error> for GraphError
impl From<Error> for GraphError
Auto Trait Implementations§
impl Freeze for GraphError
impl !RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin 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