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

Method is_not_found

atomic-remote/src/error.rs:355–364  ·  view source on GitHub ↗

Check if this is a "not found" error.

(&self)

Source from the content-addressed store, hash-verified

353
354 /// Check if this is a "not found" error.
355 pub fn is_not_found(&self) -> bool {
356 matches!(
357 self,
358 Self::RepositoryNotFound { .. }
359 | Self::ViewNotFound { .. }
360 | Self::ChangeNotFound { .. }
361 | Self::TagNotFound { .. }
362 | Self::HttpError { status: 404, .. }
363 )
364 }
365
366 /// Get a user-friendly suggestion for how to resolve this error.
367 pub fn suggestion(&self) -> Option<&'static str> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected