Download crates/forge_services/src/error.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_services/src/error.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_services/src/error.rs
-
curl -L -o error.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_services/src/error.rs
1.88 kB
| /// Authentication flow errors. | |
| use std::time::Duration; | |
| /// Errors that can occur during authentication flows. | |
| pub enum Error { | |
| /// Authentication initiation failed. | |
| InitiationFailed(String), | |
| /// Authentication timed out waiting for user. | |
| Timeout(Duration), | |
| /// Device code or session expired before completion. | |
| Expired, | |
| /// User denied authorization request. | |
| Denied, | |
| /// Polling operation failed due to network or server error. | |
| PollFailed(String), | |
| /// Authentication completion failed. | |
| CompletionFailed(String), | |
| /// Token refresh operation failed. | |
| RefreshFailed(String), | |
| /// Credential validation failed. | |
| ValidationFailed(String), | |
| /// Required parameter is missing. | |
| MissingParameter(String), | |
| /// Parameter value is invalid. | |
| InvalidParameter(String, String), | |
| /// Base URL is invalid or malformed. | |
| InvalidBaseUrl(String), | |
| /// Custom provider validation failed. | |
| CustomProviderValidationFailed(String), | |
| /// Invalid authentication context for the flow type. | |
| InvalidContext(String), | |
| /// No valid source files found to index. | |
| NoSourceFilesFound, | |
| } | |