pub enum LlmClientError {
EnvVarMissing(String),
HttpError(Error),
ValidationError(String),
ApiError(String),
SerializationError(Error),
RateLimitExceeded(String),
CacheError(String),
}
Expand description
Custom error type for the AI client
Variants§
EnvVarMissing(String)
HttpError(Error)
ValidationError(String)
ApiError(String)
SerializationError(Error)
RateLimitExceeded(String)
CacheError(String)
Trait Implementations§
Source§impl Debug for LlmClientError
impl Debug for LlmClientError
Source§impl Display for LlmClientError
impl Display for LlmClientError
Source§impl Error for LlmClientError
impl Error for LlmClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for LlmClientError
impl From<Error> for LlmClientError
Auto Trait Implementations§
impl Freeze for LlmClientError
impl !RefUnwindSafe for LlmClientError
impl Send for LlmClientError
impl Sync for LlmClientError
impl Unpin for LlmClientError
impl !UnwindSafe for LlmClientError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more