arbiter_credential/error.rs
1//! Credential error types.
2
3use thiserror::Error;
4
5/// Errors that can occur during credential resolution or injection.
6#[derive(Debug, Error)]
7pub enum CredentialError {
8 /// The requested credential reference was not found.
9 #[error("credential not found: {0}")]
10 NotFound(String),
11
12 /// The underlying provider encountered an error.
13 #[error("provider error: {0}")]
14 ProviderError(String),
15
16 /// Decryption of the credential store failed.
17 #[error("decryption failed: {0}")]
18 DecryptionFailed(String),
19
20 /// The credential reference is malformed.
21 #[error("invalid reference: {0}")]
22 InvalidReference(String),
23}