Skip to main content

TemporalError

Enum TemporalError 

Source
pub enum TemporalError {
Show 21 variants InvalidInput(String), InsufficientData(String), TimeIndexOutOfBounds { index: usize, min: usize, max: usize, }, InvalidTimeRange { start: String, end: String, }, GapDetected { position: usize, }, DimensionMismatch { expected: String, actual: String, }, InvalidParameter { param: String, reason: String, }, CompositingError(String), InterpolationError(String), AggregationError(String), ChangeDetectionError(String), TrendAnalysisError(String), PhenologyError(String), DataCubeError(String), MetadataError(String), StorageError(String), AnalyticsError(AnalyticsError), CoreError(OxiGdalError), DateTimeParseError(String), IoError(Error), SerializationError(Error),
}
Expand description

Comprehensive error types for temporal analysis operations

Variants§

§

InvalidInput(String)

Invalid temporal input

§

InsufficientData(String)

Insufficient temporal data for computation

§

TimeIndexOutOfBounds

Time index out of bounds

Fields

§index: usize

The invalid index that was provided

§min: usize

Minimum valid index

§max: usize

Maximum valid index (exclusive)

§

InvalidTimeRange

Invalid time range

Fields

§start: String

Start of the invalid range

§end: String

End of the invalid range

§

GapDetected

Gap in time series data

Fields

§position: usize

Position where the gap was detected

§

DimensionMismatch

Temporal dimension mismatch

Fields

§expected: String

Expected dimension specification

§actual: String

Actual dimension specification

§

InvalidParameter

Invalid temporal parameter

Fields

§param: String

Name of the invalid parameter

§reason: String

Reason why the parameter is invalid

§

CompositingError(String)

Compositing operation failed

§

InterpolationError(String)

Interpolation failed

§

AggregationError(String)

Aggregation failed

§

ChangeDetectionError(String)

Change detection failed

§

TrendAnalysisError(String)

Trend analysis failed

§

PhenologyError(String)

Phenology analysis failed

§

DataCubeError(String)

Data cube operation failed

§

MetadataError(String)

Temporal metadata error

§

StorageError(String)

Storage backend error

§

AnalyticsError(AnalyticsError)

Analytics library error

§

CoreError(OxiGdalError)

Core library error

§

DateTimeParseError(String)

Date/time parsing error

§

IoError(Error)

I/O error

§

SerializationError(Error)

Serialization error

Implementations§

Source§

impl TemporalError

Source

pub fn invalid_input(msg: impl Into<String>) -> Self

Create an invalid input error

Source

pub fn insufficient_data(msg: impl Into<String>) -> Self

Create an insufficient data error

Source

pub fn time_index_out_of_bounds(index: usize, min: usize, max: usize) -> Self

Create a time index out of bounds error

Source

pub fn invalid_time_range( start: impl Into<String>, end: impl Into<String>, ) -> Self

Create an invalid time range error

Source

pub fn gap_detected(position: usize) -> Self

Create a gap detected error

Source

pub fn dimension_mismatch( expected: impl Into<String>, actual: impl Into<String>, ) -> Self

Create a dimension mismatch error

Source

pub fn invalid_parameter( param: impl Into<String>, reason: impl Into<String>, ) -> Self

Create an invalid parameter error

Source

pub fn compositing_error(msg: impl Into<String>) -> Self

Create a compositing error

Source

pub fn interpolation_error(msg: impl Into<String>) -> Self

Create an interpolation error

Source

pub fn aggregation_error(msg: impl Into<String>) -> Self

Create an aggregation error

Source

pub fn change_detection_error(msg: impl Into<String>) -> Self

Create a change detection error

Source

pub fn trend_analysis_error(msg: impl Into<String>) -> Self

Create a trend analysis error

Source

pub fn phenology_error(msg: impl Into<String>) -> Self

Create a phenology error

Source

pub fn datacube_error(msg: impl Into<String>) -> Self

Create a data cube error

Source

pub fn metadata_error(msg: impl Into<String>) -> Self

Create a metadata error

Source

pub fn storage_error(msg: impl Into<String>) -> Self

Create a storage error

Source

pub fn datetime_parse_error(msg: impl Into<String>) -> Self

Create a date/time parse error

Trait Implementations§

Source§

impl Debug for TemporalError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TemporalError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for TemporalError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AnalyticsError> for TemporalError

Source§

fn from(source: AnalyticsError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for TemporalError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for TemporalError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<OxiGdalError> for TemporalError

Source§

fn from(source: OxiGdalError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more