pub enum AnalyticsError {
Show 17 variants
InvalidInput(String),
InsufficientData(String),
ConvergenceError(String),
NumericalInstability(String),
MatrixError(String),
DimensionMismatch {
expected: String,
actual: String,
},
InvalidParameter {
param: String,
reason: String,
},
StatisticalTestError(String),
ClusteringError(String),
InterpolationError(String),
TimeSeriesError(String),
HotspotError(String),
ChangeDetectionError(String),
ZonalStatsError(String),
CoreError(OxiGdalError),
SciRS2Error(String),
IoError(Error),
}Expand description
Comprehensive error types for analytics operations
Variants§
InvalidInput(String)
Invalid input parameters
InsufficientData(String)
Insufficient data for computation
ConvergenceError(String)
Computation failed to converge
NumericalInstability(String)
Numerical instability detected
MatrixError(String)
Matrix operation failed
DimensionMismatch
Dimension mismatch in arrays
InvalidParameter
Invalid parameter value
StatisticalTestError(String)
Statistical test failed
ClusteringError(String)
Clustering operation failed
InterpolationError(String)
Interpolation failed
TimeSeriesError(String)
Time series analysis failed
HotspotError(String)
Hotspot analysis failed
ChangeDetectionError(String)
Change detection failed
ZonalStatsError(String)
Zonal statistics failed
CoreError(OxiGdalError)
Core library error
SciRS2Error(String)
SciRS2 error
IoError(Error)
I/O error
Implementations§
Source§impl AnalyticsError
impl AnalyticsError
Sourcepub fn invalid_input(msg: impl Into<String>) -> Self
pub fn invalid_input(msg: impl Into<String>) -> Self
Create an invalid input error
Sourcepub fn insufficient_data(msg: impl Into<String>) -> Self
pub fn insufficient_data(msg: impl Into<String>) -> Self
Create an insufficient data error
Sourcepub fn convergence_error(msg: impl Into<String>) -> Self
pub fn convergence_error(msg: impl Into<String>) -> Self
Create a convergence error
Sourcepub fn numerical_instability(msg: impl Into<String>) -> Self
pub fn numerical_instability(msg: impl Into<String>) -> Self
Create a numerical instability error
Sourcepub fn matrix_error(msg: impl Into<String>) -> Self
pub fn matrix_error(msg: impl Into<String>) -> Self
Create a matrix error
Sourcepub fn dimension_mismatch(
expected: impl Into<String>,
actual: impl Into<String>,
) -> Self
pub fn dimension_mismatch( expected: impl Into<String>, actual: impl Into<String>, ) -> Self
Create a dimension mismatch error
Sourcepub fn invalid_parameter(
param: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn invalid_parameter( param: impl Into<String>, reason: impl Into<String>, ) -> Self
Create an invalid parameter error
Sourcepub fn statistical_test_error(msg: impl Into<String>) -> Self
pub fn statistical_test_error(msg: impl Into<String>) -> Self
Create a statistical test error
Sourcepub fn clustering_error(msg: impl Into<String>) -> Self
pub fn clustering_error(msg: impl Into<String>) -> Self
Create a clustering error
Sourcepub fn interpolation_error(msg: impl Into<String>) -> Self
pub fn interpolation_error(msg: impl Into<String>) -> Self
Create an interpolation error
Sourcepub fn time_series_error(msg: impl Into<String>) -> Self
pub fn time_series_error(msg: impl Into<String>) -> Self
Create a time series error
Sourcepub fn hotspot_error(msg: impl Into<String>) -> Self
pub fn hotspot_error(msg: impl Into<String>) -> Self
Create a hotspot analysis error
Sourcepub fn change_detection_error(msg: impl Into<String>) -> Self
pub fn change_detection_error(msg: impl Into<String>) -> Self
Create a change detection error
Sourcepub fn zonal_stats_error(msg: impl Into<String>) -> Self
pub fn zonal_stats_error(msg: impl Into<String>) -> Self
Create a zonal statistics error
Sourcepub fn scirs2_error(msg: impl Into<String>) -> Self
pub fn scirs2_error(msg: impl Into<String>) -> Self
Create a SciRS2 error
Trait Implementations§
Source§impl Debug for AnalyticsError
impl Debug for AnalyticsError
Source§impl Display for AnalyticsError
impl Display for AnalyticsError
Source§impl Error for AnalyticsError
impl Error for AnalyticsError
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
Source§impl From<Error> for AnalyticsError
impl From<Error> for AnalyticsError
Source§impl From<OxiGdalError> for AnalyticsError
impl From<OxiGdalError> for AnalyticsError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Auto Trait Implementations§
impl Freeze for AnalyticsError
impl !RefUnwindSafe for AnalyticsError
impl Send for AnalyticsError
impl Sync for AnalyticsError
impl Unpin for AnalyticsError
impl UnsafeUnpin for AnalyticsError
impl !UnwindSafe for AnalyticsError
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 more