MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / graph

Method graph

atomic-core/src/output/repo/error.rs:195–200  ·  view source on GitHub ↗

Create a graph error. # Arguments `err` - The underlying graph error # Example ```rust use atomic_core::output::repo::OutputError; let err = OutputError::graph(std::io::Error::new( std::io::ErrorKind::InvalidData, "corrupted graph" )); assert!(err.to_string().contains("Graph")); ```

(err: E)

Source from the content-addressed store, hash-verified

193 /// assert!(err.to_string().contains("Graph"));
194 /// ```
195 pub fn graph<E>(err: E) -> Self
196 where
197 E: std::error::Error + Send + Sync + 'static,
198 {
199 Self::Graph(Box::new(err))
200 }
201
202 /// Create a path not found error.
203 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected