Check if this is a "not found" error.
(&self)
| 353 | |
| 354 | /// Check if this is a "not found" error. |
| 355 | pub fn is_not_found(&self) -> bool { |
| 356 | matches!( |
| 357 | self, |
| 358 | Self::RepositoryNotFound { .. } |
| 359 | | Self::ViewNotFound { .. } |
| 360 | | Self::ChangeNotFound { .. } |
| 361 | | Self::TagNotFound { .. } |
| 362 | | Self::HttpError { status: 404, .. } |
| 363 | ) |
| 364 | } |
| 365 | |
| 366 | /// Get a user-friendly suggestion for how to resolve this error. |
| 367 | pub fn suggestion(&self) -> Option<&'static str> { |
nothing calls this directly
no outgoing calls
no test coverage detected