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

Method is_recoverable

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

Check if this error is recoverable. Recoverable errors are those where the operation can potentially succeed if retried or if the user fixes the underlying issue. # Returns `true` if the error might be recoverable.

(&self)

Source from the content-addressed store, hash-verified

459 ///
460 /// `true` if the error might be recoverable.
461 pub fn is_recoverable(&self) -> bool {
462 matches!(
463 self,
464 Self::PathNotInRepo { .. }
465 | Self::PathNotFound { .. }
466 | Self::PermissionDenied { .. }
467 | Self::Conflict { .. }
468 | Self::FileTooLarge { .. }
469 )
470 }
471}
472
473/// Result type alias for record operations.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected