pub enum OxeylyzerError {
InvalidBigramLength(usize),
InvalidTrigramLength(usize),
ChunkerInitError,
ChunkerChunkError,
NotAFile(PathBuf),
PathDoesNotExist(PathBuf),
MissingDataName,
CouldNotSerializeData(String),
InvalidCorpusPath(PathBuf),
AnyhowError(Error),
}Expand description
Errors that can occur within the oxeylyzer-core crate.
Variants§
InvalidBigramLength(usize)
Encountered a bigram that does not have a length of 2.
InvalidTrigramLength(usize)
Encountered a trigram that does not have a length of 3.
ChunkerInitError
Failed to initialize the file chunker for corpus processing.
ChunkerChunkError
Failed to split the corpus into valid chunks.
NotAFile(PathBuf)
The provided path is not a file or directory.
PathDoesNotExist(PathBuf)
The specified path does not exist on the file system.
MissingDataName
No name was provided for the corpus data.
CouldNotSerializeData(String)
Could not serialize the processed data to JSON.
InvalidCorpusPath(PathBuf)
The corpus output path is invalid (usually missing .json extension).
AnyhowError(Error)
Wrapper for general anyhow errors.
Trait Implementations§
Source§impl Debug for OxeylyzerError
impl Debug for OxeylyzerError
Source§impl Display for OxeylyzerError
impl Display for OxeylyzerError
Source§impl Error for OxeylyzerError
impl Error for OxeylyzerError
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 Freeze for OxeylyzerError
impl RefUnwindSafe for OxeylyzerError
impl Send for OxeylyzerError
impl Sync for OxeylyzerError
impl Unpin for OxeylyzerError
impl UnsafeUnpin for OxeylyzerError
impl UnwindSafe for OxeylyzerError
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
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