pub enum NetCdfError {
Show 26 variants
Io(String),
InvalidFormat(String),
UnsupportedVersion {
version: u8,
message: String,
},
DimensionError(String),
DimensionNotFound {
name: String,
},
VariableError(String),
VariableNotFound {
name: String,
},
AttributeError(String),
AttributeNotFound {
name: String,
},
DataTypeMismatch {
expected: String,
found: String,
},
InvalidShape {
message: String,
},
UnlimitedDimensionError(String),
IndexOutOfBounds {
index: usize,
length: usize,
dimension: String,
},
StringEncodingError(String),
FeatureNotEnabled {
feature: String,
message: String,
},
NetCdf4NotAvailable,
CompressionNotSupported {
compression: String,
},
InvalidCompressionParams(String),
CfConventionsError(String),
CoordinateError(String),
FileAlreadyExists {
path: String,
},
FileNotFound {
path: String,
},
PermissionDenied {
path: String,
},
InvalidFileMode {
mode: String,
},
Other(String),
Core(OxiGdalError),
}Expand description
NetCDF-specific error types.
Variants§
Io(String)
I/O error occurred
InvalidFormat(String)
Invalid NetCDF format
UnsupportedVersion
Version not supported
DimensionError(String)
Dimension error
DimensionNotFound
Dimension not found
VariableError(String)
Variable error
VariableNotFound
Variable not found
AttributeError(String)
Attribute error
AttributeNotFound
Attribute not found
DataTypeMismatch
Data type mismatch
InvalidShape
Invalid shape or dimensions
UnlimitedDimensionError(String)
Unlimited dimension error
IndexOutOfBounds
Index out of bounds
StringEncodingError(String)
String encoding error
FeatureNotEnabled
Feature not enabled
NetCdf4NotAvailable
NetCDF-4 not available (requires feature flag)
CompressionNotSupported
Compression not supported
InvalidCompressionParams(String)
Invalid compression parameters
CfConventionsError(String)
CF conventions error
CoordinateError(String)
Coordinate variable error
FileAlreadyExists
File already exists
FileNotFound
File not found
PermissionDenied
Permission denied
InvalidFileMode
Invalid file mode
Other(String)
Generic error
Core(OxiGdalError)
Error from oxigdal-core
Implementations§
Source§impl NetCdfError
impl NetCdfError
Sourcepub fn code(&self) -> &'static str
pub fn code(&self) -> &'static str
Get the error code for this NetCDF error
Error codes are stable across versions and can be used for documentation and error handling.
Sourcepub fn suggestion(&self) -> Option<&'static str>
pub fn suggestion(&self) -> Option<&'static str>
Get a helpful suggestion for fixing this NetCDF error
Returns a human-readable suggestion that can help users resolve the error.
Sourcepub fn context(&self) -> ErrorContext
pub fn context(&self) -> ErrorContext
Get additional context about this NetCDF error
Returns structured context information including variable/dimension names.
Trait Implementations§
Source§impl Debug for NetCdfError
impl Debug for NetCdfError
Source§impl Display for NetCdfError
impl Display for NetCdfError
Source§impl Error for NetCdfError
Available on crate feature std only.
impl Error for NetCdfError
std only.Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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 NetCdfError
Available on crate feature std only.
impl From<Error> for NetCdfError
std only.Source§impl From<Error> for NetCdfError
impl From<Error> for NetCdfError
Source§impl From<FromUtf8Error> for NetCdfError
Available on crate feature std only.
impl From<FromUtf8Error> for NetCdfError
std only.