pub enum Error {
ParseFailed {
what: String,
detail: String,
},
UnsupportedSource {
what: String,
},
IoError(Error),
Commit(String),
Extractor(String),
Sidecar {
tool: String,
detail: String,
},
Other(String),
}Expand description
Errors produced by the ingest pipeline.
Variants§
ParseFailed
Parsing the source bytes failed.
what names the parser ("markdown", "text") and detail
carries an upstream message suitable for logging - not for
end-user display.
Fields
UnsupportedSource
The supplied crate::SourceKind is not yet supported in this
sub-wave (e.g. PDF or Conversation before Phase-B5b/B5e).
IoError(Error)
I/O failure reading a source artifact.
Commit(String)
A downstream Transaction::add_node / add_edge returned an
error during pipeline execution. The embedded string carries the
upstream mnem_core::Error display text so we avoid a
cross-crate re-export while still preserving detail for logs.
Extractor(String)
An crate::extract::Extractor or embedder raised an error the
pipeline could not recover from.
Sidecar
An optional sidecar binary (docling / unstructured, feature-gated
in Phase-B5e) was requested but is not available on PATH, or
returned a non-zero exit status / malformed output.
The tool field names the sidecar ("docling",
"unstructured-ingest"); detail carries the failure mode
("binary not found", upstream stderr, or parse error).
Fields
Other(String)
Catch-all for internal invariants. Prefer a typed variant for anything a caller might branch on.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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
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>
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.