pub enum LlmClientError {
Serialization(Error),
MissingField(String),
UnknownProvider(String),
ApiError {
error_type: String,
message: String,
code: Option<String>,
},
UnexpectedFormat(String),
RateLimited,
AuthError(String),
}Expand description
Errors that can occur in the LLM client.
Variants§
Serialization(Error)
JSON serialization error
MissingField(String)
Missing required field
UnknownProvider(String)
Invalid provider
ApiError
API error response
UnexpectedFormat(String)
Unexpected response format
RateLimited
Rate limit exceeded
AuthError(String)
Authentication error
Implementations§
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
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()
Auto Trait Implementations§
impl Freeze for LlmClientError
impl !RefUnwindSafe for LlmClientError
impl Send for LlmClientError
impl Sync for LlmClientError
impl Unpin for LlmClientError
impl UnsafeUnpin 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