pub enum SensorError {
Show 25 variants
InvalidSensor(String),
InvalidBand(String),
BandNotFound {
sensor: String,
band: String,
},
InvalidIndex(String),
MissingBand {
band: String,
operation: String,
},
InvalidMetadata(String),
CalibrationError(String),
AtmosphericCorrectionError(String),
BrdfError(String),
IndexError(String),
PanSharpeningError(String),
ClassificationError(String),
InvalidDN(String),
InvalidRadiance(String),
InvalidReflectance(String),
InvalidSolarAngle(String),
InvalidDateTime(String),
DimensionMismatch {
expected: String,
actual: String,
},
InvalidParameter {
param: String,
reason: String,
},
NumericalInstability(String),
DivisionByZero(String),
CoreError(OxiGdalError),
SciRS2Error(String),
IoError(Error),
SerializationError(Error),
}Expand description
Comprehensive error types for sensor operations
Variants§
InvalidSensor(String)
Invalid sensor type or configuration
InvalidBand(String)
Invalid band specification
BandNotFound
Band not found for sensor
InvalidIndex(String)
Invalid spectral index
MissingBand
Missing required band for operation
InvalidMetadata(String)
Invalid metadata
CalibrationError(String)
Radiometric calibration failed
AtmosphericCorrectionError(String)
Atmospheric correction failed
BrdfError(String)
BRDF normalization failed
IndexError(String)
Spectral index calculation failed
PanSharpeningError(String)
Pan-sharpening failed
ClassificationError(String)
Classification failed
InvalidDN(String)
Invalid DN (Digital Number) value
InvalidRadiance(String)
Invalid radiance value
InvalidReflectance(String)
Invalid reflectance value
InvalidSolarAngle(String)
Invalid solar angle
InvalidDateTime(String)
Invalid date/time
DimensionMismatch
Dimension mismatch in arrays
InvalidParameter
Invalid parameter value
NumericalInstability(String)
Numerical instability detected
DivisionByZero(String)
Division by zero
CoreError(OxiGdalError)
Core library error
SciRS2Error(String)
SciRS2 error
IoError(Error)
I/O error
SerializationError(Error)
Serialization error
Implementations§
Source§impl SensorError
impl SensorError
Sourcepub fn invalid_sensor(msg: impl Into<String>) -> Self
pub fn invalid_sensor(msg: impl Into<String>) -> Self
Create an invalid sensor error
Sourcepub fn invalid_band(msg: impl Into<String>) -> Self
pub fn invalid_band(msg: impl Into<String>) -> Self
Create an invalid band error
Sourcepub fn band_not_found(
sensor: impl Into<String>,
band: impl Into<String>,
) -> Self
pub fn band_not_found( sensor: impl Into<String>, band: impl Into<String>, ) -> Self
Create a band not found error
Sourcepub fn invalid_index(msg: impl Into<String>) -> Self
pub fn invalid_index(msg: impl Into<String>) -> Self
Create an invalid index error
Sourcepub fn missing_band(
band: impl Into<String>,
operation: impl Into<String>,
) -> Self
pub fn missing_band( band: impl Into<String>, operation: impl Into<String>, ) -> Self
Create a missing band error
Sourcepub fn invalid_metadata(msg: impl Into<String>) -> Self
pub fn invalid_metadata(msg: impl Into<String>) -> Self
Create an invalid metadata error
Sourcepub fn calibration_error(msg: impl Into<String>) -> Self
pub fn calibration_error(msg: impl Into<String>) -> Self
Create a calibration error
Sourcepub fn atmospheric_correction_error(msg: impl Into<String>) -> Self
pub fn atmospheric_correction_error(msg: impl Into<String>) -> Self
Create an atmospheric correction error
Sourcepub fn brdf_error(msg: impl Into<String>) -> Self
pub fn brdf_error(msg: impl Into<String>) -> Self
Create a BRDF error
Sourcepub fn index_error(msg: impl Into<String>) -> Self
pub fn index_error(msg: impl Into<String>) -> Self
Create an index error
Sourcepub fn pan_sharpening_error(msg: impl Into<String>) -> Self
pub fn pan_sharpening_error(msg: impl Into<String>) -> Self
Create a pan-sharpening error
Sourcepub fn classification_error(msg: impl Into<String>) -> Self
pub fn classification_error(msg: impl Into<String>) -> Self
Create a classification 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 numerical_instability(msg: impl Into<String>) -> Self
pub fn numerical_instability(msg: impl Into<String>) -> Self
Create a numerical instability error
Sourcepub fn division_by_zero(msg: impl Into<String>) -> Self
pub fn division_by_zero(msg: impl Into<String>) -> Self
Create a division by zero 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 SensorError
impl Debug for SensorError
Source§impl Display for SensorError
impl Display for SensorError
Source§impl Error for SensorError
impl Error for SensorError
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<Error> for SensorError
impl From<Error> for SensorError
Source§impl From<Error> for SensorError
impl From<Error> for SensorError
Source§impl From<OxiGdalError> for SensorError
impl From<OxiGdalError> for SensorError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Auto Trait Implementations§
impl Freeze for SensorError
impl !RefUnwindSafe for SensorError
impl Send for SensorError
impl Sync for SensorError
impl Unpin for SensorError
impl UnsafeUnpin for SensorError
impl !UnwindSafe for SensorError
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> 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