pub enum AnalyzerError {
StateComputation(String),
MetricComputation(String),
StateMerge(String),
QueryExecution(DataFusionError),
ArrowComputation(ArrowError),
InvalidConfiguration(String),
InvalidData(String),
NoData,
Serialization(String),
Custom(String),
}Expand description
Errors that can occur during analyzer operations.
Variants§
StateComputation(String)
Error occurred while computing state from data.
MetricComputation(String)
Error occurred while computing metric from state.
StateMerge(String)
Error occurred while merging states.
QueryExecution(DataFusionError)
DataFusion query execution error.
ArrowComputation(ArrowError)
Arrow computation error.
InvalidConfiguration(String)
Invalid configuration or parameters.
InvalidData(String)
Data type mismatch or invalid data.
NoData
No data available for analysis.
Serialization(String)
Serialization/deserialization error.
Custom(String)
Generic analyzer error with custom message.
Implementations§
Source§impl AnalyzerError
impl AnalyzerError
Sourcepub fn state_computation(msg: impl Into<String>) -> Self
pub fn state_computation(msg: impl Into<String>) -> Self
Creates a state computation error with the given message.
Sourcepub fn metric_computation(msg: impl Into<String>) -> Self
pub fn metric_computation(msg: impl Into<String>) -> Self
Creates a metric computation error with the given message.
Sourcepub fn state_merge(msg: impl Into<String>) -> Self
pub fn state_merge(msg: impl Into<String>) -> Self
Creates a state merge error with the given message.
Sourcepub fn invalid_config(msg: impl Into<String>) -> Self
pub fn invalid_config(msg: impl Into<String>) -> Self
Creates an invalid configuration error with the given message.
Sourcepub fn invalid_data(msg: impl Into<String>) -> Self
pub fn invalid_data(msg: impl Into<String>) -> Self
Creates an invalid data error with the given message.
Trait Implementations§
Source§impl Debug for AnalyzerError
impl Debug for AnalyzerError
Source§impl Display for AnalyzerError
impl Display for AnalyzerError
Source§impl Error for AnalyzerError
impl Error for AnalyzerError
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()
Source§impl From<AnalyzerError> for TermError
Conversion from AnalyzerError to TermError.
impl From<AnalyzerError> for TermError
Conversion from AnalyzerError to TermError.
Source§fn from(err: AnalyzerError) -> Self
fn from(err: AnalyzerError) -> Self
Source§impl From<ArrowError> for AnalyzerError
impl From<ArrowError> for AnalyzerError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Source§impl From<DataFusionError> for AnalyzerError
impl From<DataFusionError> for AnalyzerError
Source§fn from(source: DataFusionError) -> Self
fn from(source: DataFusionError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for AnalyzerError
impl !UnwindSafe for AnalyzerError
impl Freeze for AnalyzerError
impl Send for AnalyzerError
impl Sync for AnalyzerError
impl Unpin for AnalyzerError
impl UnsafeUnpin for AnalyzerError
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more