mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
11 lines
368 B
Rust
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),
|
|
}
|