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

Method change_store

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

Create a change store error. # Arguments `err` - The underlying error from the change store # Example ```rust use atomic_core::output::repo::OutputError; let err = OutputError::change_store(std::io::Error::new( std::io::ErrorKind::NotFound, "change not found" )); assert!(err.to_string().contains("Change store")); ```

(err: E)

Source from the content-addressed store, hash-verified

168 /// assert!(err.to_string().contains("Change store"));
169 /// ```
170 pub fn change_store<E>(err: E) -> Self
171 where
172 E: std::error::Error + Send + Sync + 'static,
173 {
174 Self::ChangeStore(Box::new(err))
175 }
176
177 /// Create a graph error.
178 ///

Callers

nothing calls this directly

Calls 1

ChangeStoreInterface · 0.50

Tested by

no test coverage detected