pub enum RagError {
Config(String),
Conversion(String),
Embedding(String),
Store(String),
Llm(String),
Source(String),
Queue(String),
Http(String),
Io(Error),
Json(Error),
FeatureDisabled(String, String),
}Expand description
Every fallible operation in the crate surfaces one of these.
Variants§
Config(String)
Configuration was missing or invalid (bad env var, unknown backend name, …).
Conversion(String)
A document could not be converted to Markdown by docling.rs.
Embedding(String)
An embedding provider (Ollama / Gemini / ONNX / …) failed.
Store(String)
The vector store / database failed.
Llm(String)
The chat/LLM provider (OpenRouter) failed.
Source(String)
A document source (folder / FTP / SFTP) failed.
Queue(String)
A message queue backend failed.
Http(String)
An HTTP request failed.
Io(Error)
I/O error.
Json(Error)
JSON (de)serialization error.
FeatureDisabled(String, String)
A feature-gated backend was requested but the crate was built without it.
Implementations§
Trait Implementations§
Source§impl Error for RagError
impl Error for RagError
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 !RefUnwindSafe for RagError
impl !UnwindSafe for RagError
impl Freeze for RagError
impl Send for RagError
impl Sync for RagError
impl Unpin for RagError
impl UnsafeUnpin for RagError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more