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)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected