pub enum LlmError {
Transport(String),
ProviderAuth(String),
ProviderQuota(String),
ProviderOutage(String),
Timeout {
duration: Duration,
},
BudgetExceeded {
limit: u32,
attempted: u32,
},
Misconfiguration(String),
Unsupported(String),
}Expand description
Errors that can occur during LLM backend operations
Variants§
Transport(String)
Transport-level failure (process spawn, HTTP connectivity)
ProviderAuth(String)
Provider authentication failure (401, 403, missing API key)
ProviderQuota(String)
Provider quota/rate limit exceeded (429)
ProviderOutage(String)
Provider service outage (5xx errors)
Timeout
Invocation timed out
BudgetExceeded
Budget limit exceeded
Misconfiguration(String)
Configuration error
Unsupported(String)
Unsupported feature or provider
Trait Implementations§
Source§impl Error for LlmError
impl Error for LlmError
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<LlmError> for XCheckerError
impl From<LlmError> for XCheckerError
Source§impl UserFriendlyError for LlmError
impl UserFriendlyError for LlmError
Source§fn user_message(&self) -> String
fn user_message(&self) -> String
Get a user-friendly error message
Source§fn suggestions(&self) -> Vec<String>
fn suggestions(&self) -> Vec<String>
Get suggested actions to resolve the error
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Get the error category for grouping similar errors
Auto Trait Implementations§
impl Freeze for LlmError
impl RefUnwindSafe for LlmError
impl Send for LlmError
impl Sync for LlmError
impl Unpin for LlmError
impl UnsafeUnpin for LlmError
impl UnwindSafe for LlmError
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