Enum graphannis::errors::GraphAnnisError
source · #[non_exhaustive]pub enum GraphAnnisError {
Show 32 variants
Core(GraphAnnisCoreError),
AQLSyntaxError(AQLError),
AQLSemanticError(AQLError),
ImpossibleSearch(String),
Timeout,
LoadingGraphFailed {
name: String,
},
NoSuchCorpus(String),
CorpusExists(String),
NoSuchNodeID(String),
NoCoveredTokenForNode(String),
NoCoveredTokenForSubgraph,
PlanDescriptionMissing,
PlanCostMissing,
NoExecutionNode(usize),
NoComponentForNode(usize),
LHSOperandNotFound,
RHSOperandNotFound,
PeekInIndexJoin(String),
InvalidFrequencyDefinition,
CorpusStorage(CorpusStorageError),
RelAnnisImportError(RelAnnisError),
Io(Error),
TomlDeserializer(Error),
TomlSerializer(Error),
Zip(ZipError),
StripPathPrefix(StripPrefixError),
Csv(Error),
ParseIntError(ParseIntError),
LockPoisoning(String),
BtreeIndex(Error),
IndexOutOfBounds(usize),
QueriedGraphNotFullyLoaded,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Core(GraphAnnisCoreError)
AQLSyntaxError(AQLError)
AQLSemanticError(AQLError)
ImpossibleSearch(String)
Timeout
LoadingGraphFailed
NoSuchCorpus(String)
CorpusExists(String)
NoSuchNodeID(String)
NoCoveredTokenForNode(String)
NoCoveredTokenForSubgraph
PlanDescriptionMissing
PlanCostMissing
NoExecutionNode(usize)
NoComponentForNode(usize)
LHSOperandNotFound
RHSOperandNotFound
PeekInIndexJoin(String)
InvalidFrequencyDefinition
CorpusStorage(CorpusStorageError)
RelAnnisImportError(RelAnnisError)
Io(Error)
TomlDeserializer(Error)
TomlSerializer(Error)
Zip(ZipError)
StripPathPrefix(StripPrefixError)
Csv(Error)
ParseIntError(ParseIntError)
LockPoisoning(String)
BtreeIndex(Error)
IndexOutOfBounds(usize)
QueriedGraphNotFullyLoaded
Trait Implementations§
source§impl Debug for GraphAnnisError
impl Debug for GraphAnnisError
source§impl Display for GraphAnnisError
impl Display for GraphAnnisError
source§impl Error for GraphAnnisError
impl Error for GraphAnnisError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<'_derivative_strum> From<&'_derivative_strum GraphAnnisError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum GraphAnnisError> for &'static str
source§fn from(x: &'_derivative_strum GraphAnnisError) -> &'static str
fn from(x: &'_derivative_strum GraphAnnisError) -> &'static str
Converts to this type from the input type.
source§impl From<CorpusStorageError> for GraphAnnisError
impl From<CorpusStorageError> for GraphAnnisError
source§fn from(source: CorpusStorageError) -> Self
fn from(source: CorpusStorageError) -> Self
Converts to this type from the input type.
source§impl From<Error> for GraphAnnisError
impl From<Error> for GraphAnnisError
source§impl From<Error> for GraphAnnisError
impl From<Error> for GraphAnnisError
source§impl From<Error> for GraphAnnisError
impl From<Error> for GraphAnnisError
source§impl From<Error> for GraphAnnisError
impl From<Error> for GraphAnnisError
source§impl From<Error> for GraphAnnisError
impl From<Error> for GraphAnnisError
source§impl From<GraphAnnisCoreError> for GraphAnnisError
impl From<GraphAnnisCoreError> for GraphAnnisError
source§fn from(source: GraphAnnisCoreError) -> Self
fn from(source: GraphAnnisCoreError) -> Self
Converts to this type from the input type.
source§impl From<GraphAnnisError> for &'static str
impl From<GraphAnnisError> for &'static str
source§fn from(x: GraphAnnisError) -> &'static str
fn from(x: GraphAnnisError) -> &'static str
Converts to this type from the input type.
source§impl From<GraphAnnisError> for ComponentTypeError
impl From<GraphAnnisError> for ComponentTypeError
source§fn from(e: GraphAnnisError) -> Self
fn from(e: GraphAnnisError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for GraphAnnisError
impl From<ParseIntError> for GraphAnnisError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for GraphAnnisError
impl<T> From<PoisonError<T>> for GraphAnnisError
source§fn from(e: PoisonError<T>) -> Self
fn from(e: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<RelAnnisError> for GraphAnnisError
impl From<RelAnnisError> for GraphAnnisError
source§fn from(source: RelAnnisError) -> Self
fn from(source: RelAnnisError) -> Self
Converts to this type from the input type.
source§impl From<StripPrefixError> for GraphAnnisError
impl From<StripPrefixError> for GraphAnnisError
source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphAnnisError
impl !RefUnwindSafe for GraphAnnisError
impl Send for GraphAnnisError
impl Sync for GraphAnnisError
impl Unpin for GraphAnnisError
impl !UnwindSafe for GraphAnnisError
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