pub enum KernelError {
LlmApi(String),
RateLimited(u64),
Http {
status: u16,
message: String,
},
Timeout(u64),
Config(String),
Store(String),
Vault(String),
Io(Error),
Search(String),
Serialization(Error),
}Expand description
Errors that can occur when using llm-kernel.
Variants§
LlmApi(String)
An LLM API returned an error response.
RateLimited(u64)
The LLM API rate-limited the request.
Http
An HTTP error occurred (non-200 status with code).
Timeout(u64)
A request timed out.
Config(String)
A configuration error (missing field, bad format, etc.).
Store(String)
A store (SQLite) error.
Vault(String)
A secrets vault error.
Io(Error)
An I/O error.
Search(String)
A search backend error.
Serialization(Error)
A serialization/deserialization error.
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Error for KernelError
impl Error for KernelError
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 KernelError
impl From<Error> for KernelError
Auto Trait Implementations§
impl !RefUnwindSafe for KernelError
impl !UnwindSafe for KernelError
impl Freeze for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnsafeUnpin for KernelError
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