pub enum GribError {
Show 28 variants
Io(Error),
InvalidHeader(Vec<u8>),
UnsupportedEdition(u8),
InvalidSection(u8),
MissingSection(String),
InvalidSectionLength {
expected: usize,
actual: usize,
},
UnsupportedGridTemplate(u16),
UnsupportedProductTemplate(u16),
UnsupportedDataTemplate(u16),
InvalidParameter {
discipline: u8,
category: u8,
number: u8,
},
InvalidGrid(String),
DecodingError(String),
InvalidDataRepresentation(String),
InvalidBitmap(String),
InvalidLevel {
level_type: u8,
value: f64,
},
InvalidTime(String),
TruncatedMessage {
expected: usize,
actual: usize,
},
InvalidEndMarker(Vec<u8>),
NotImplemented(String),
UnsupportedPacking(String),
InvalidBitOperation(String),
CoordinateError(String),
ParseError(String),
OutOfRange(String),
Utf8Error(Utf8Error),
SerializationError(String),
IntegrationError(String),
Other(String),
}Expand description
Comprehensive error type for GRIB operations.
Variants§
Io(Error)
I/O error occurred during file operations
InvalidHeader(Vec<u8>)
Invalid GRIB magic number or header
UnsupportedEdition(u8)
Unsupported GRIB edition
InvalidSection(u8)
Invalid section number
MissingSection(String)
Missing required section
InvalidSectionLength
Invalid section length
UnsupportedGridTemplate(u16)
Unsupported grid definition template
UnsupportedProductTemplate(u16)
Unsupported product definition template
UnsupportedDataTemplate(u16)
Unsupported data representation template
InvalidParameter
Invalid parameter code
Fields
InvalidGrid(String)
Invalid grid definition
DecodingError(String)
Data decoding error
InvalidDataRepresentation(String)
Invalid data representation
InvalidBitmap(String)
Invalid bitmap
InvalidLevel
Invalid level/layer specification
InvalidTime(String)
Invalid time specification
TruncatedMessage
Message truncated or incomplete
InvalidEndMarker(Vec<u8>)
Invalid end marker
NotImplemented(String)
Feature not implemented
UnsupportedPacking(String)
Unsupported compression or packing method
InvalidBitOperation(String)
Invalid bit offset or bit length
CoordinateError(String)
Coordinate conversion error
ParseError(String)
Generic parsing error
OutOfRange(String)
Value out of valid range
Utf8Error(Utf8Error)
UTF-8 decoding error
SerializationError(String)
Serialization/deserialization error
IntegrationError(String)
Integration error with oxigdal-core
Other(String)
Other errors
Implementations§
Trait Implementations§
Source§impl Error for GribError
impl Error for GribError
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()