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

Method is_recoverable

atomic-agent/src/error.rs:356–365  ·  view source on GitHub ↗

Returns `true` if this error is recoverable and the operation can be retried.

(&self)

Source from the content-addressed store, hash-verified

354impl AgentError {
355 /// Returns `true` if this error is recoverable and the operation can be retried.
356 pub fn is_recoverable(&self) -> bool {
357 matches!(
358 self,
359 AgentError::WatchmanNotRunning
360 | AgentError::WatchmanConnectionFailed { .. }
361 | AgentError::WatchmanQueryFailed { .. }
362 | AgentError::CaptureInvalid { .. }
363 | AgentError::TurnAlreadyActive { .. }
364 )
365 }
366
367 /// Returns `true` if this error indicates Watchman is unavailable
368 /// and the fallback watcher should be used.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected