litellm/litellm-rust/crates/gateway-management/src/error.rs
devin-ai-integration[bot] ed43556e92
feat(rust): add virtual key storage contracts (#43468)
Co-authored-by: Yujong Lee <yujong@berri.ai>
2026-09-27 19:18:59 -07:00

11 lines
368 B
Rust

#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("key expiration must be in the future")]
InvalidExpiration,
#[error("key already exists")]
AlreadyExists,
#[error("key storage unavailable")]
Storage(#[source] Box<dyn std::error::Error + Send + Sync>),
#[error("key generation unavailable")]
Entropy(#[source] rand::Error),
}