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

Method is_recoverable

atomic-core/src/apply/error.rs:435–443  ·  view source on GitHub ↗

Check if this error is recoverable. Recoverable errors are those where the operation might succeed if dependencies are resolved or the state changes. # Returns `true` if the error might be recoverable.

(&self)

Source from the content-addressed store, hash-verified

433 ///
434 /// `true` if the error might be recoverable.
435 pub fn is_recoverable(&self) -> bool {
436 matches!(
437 self,
438 Self::DependencyMissing { .. }
439 | Self::ChangeAlreadyApplied { .. }
440 | Self::TagAlreadyApplied { .. }
441 | Self::TagStateMismatch { .. }
442 )
443 }
444}
445
446/// High-level errors that can occur during change application.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected