#[non_exhaustive]pub enum Error {
Core(Error),
Html(HtmlError),
Markdown(MarkdownError),
Fst(Error),
Cdb(Error),
Io(Error),
Config(String),
}Expand description
Aggregated error type returned by the umbrella gukhanmun crate.
Each variant wraps a sub-crate’s error and is gated on the same Cargo
feature that activates the sub-crate. The variant for the always-present
gukhanmun-core crate is unconditional.
Error is #[non_exhaustive] so that additional variants can be added in
a minor release as new sub-crates or boundary failures are introduced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Core(Error)
An error emitted by gukhanmun-core (engine, dictionaries, IR).
Html(HtmlError)
An error emitted by gukhanmun-html (HTML reader / writer).
Markdown(MarkdownError)
An error emitted by gukhanmun-markdown (Markdown reader / writer).
Fst(Error)
An error emitted by gukhanmun-fst (FST dictionary backend).
Cdb(Error)
An error emitted by gukhanmun-cdb (CDB dictionary backend).
Io(Error)
An I/O error encountered while loading a dictionary or reading boundary bytes.
Config(String)
A configuration error reported by the umbrella facade itself, such
as requesting the bundled stdict without the stdict feature
enabled, or supplying an unsupported dictionary format.
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()