mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
13 lines
424 B
Rust
13 lines
424 B
Rust
#[derive(Clone, Debug, PartialEq, Eq, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("cache is unavailable")]
|
|
Unavailable,
|
|
#[error("invalid cache entry")]
|
|
InvalidEntry,
|
|
#[error("flushing Redis requires an explicit namespace")]
|
|
UnscopedFlush,
|
|
#[error("operation is not supported by this cache")]
|
|
UnsupportedOperation,
|
|
#[error("semantic cache requires request messages")]
|
|
MissingPrompt,
|
|
}
|