1
 2
 3
 4
 5
 6
 7
 8
 9
10
use thiserror::Error;

/// Graph errors.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum GraphError {
    /// The graph is missing relevant information.
    #[error("incomplete graph: {value:?}")]
    IncompleteGraph { value: String },
}