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

Method is_storage_error

atomic-core/src/record/error.rs:449–451  ·  view source on GitHub ↗

Check if this error indicates a storage/database problem. These errors typically indicate corruption or system issues that may require administrator intervention. # Returns `true` if the error is related to storage.

(&self)

Source from the content-addressed store, hash-verified

447 ///
448 /// `true` if the error is related to storage.
449 pub fn is_storage_error(&self) -> bool {
450 matches!(self, Self::Pristine(_) | Self::Io(_))
451 }
452
453 /// Check if this error is recoverable.
454 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected