Enum eccodes::errors::CodesInternal
source · pub enum CodesInternal {
Show 68 variants
CodesSuccess = 0,
CodesEndOfFile = -1,
CodesInternalError = -2,
CodesBufferTooSmall = -3,
CodesNotImplemented = -4,
Codes7777NotFound = -5,
CodesArrayTooSmall = -6,
CodesFileNotFound = -7,
CodesCodeNotFoundInTable = -8,
CodesWrongArraySize = -9,
CodesNotFound = -10,
CodesIoProblem = -11,
CodesInvalidMessage = -12,
CodesDecodingError = -13,
CodesEncodingError = -14,
CodesNoMoreInSet = -15,
CodesGeocalculusProblem = -16,
CodesOutOfMemory = -17,
CodesReadOnly = -18,
CodesInvalidArgument = -19,
CodesNullHandle = -20,
CodesInvalidSectionNumber = -21,
CodesValueCannotBeMissing = -22,
CodesWrongLength = -23,
CodesInvalidType = -24,
CodesWrongStep = -25,
CodesWrongStepUnit = -26,
CodesInvalidFile = -27,
CodesInvalidGrib = -28,
CodesInvalidIndex = -29,
CodesInvalidIterator = -30,
CodesInvalidKeysIterator = -31,
CodesInvalidNearest = -32,
CodesInvalidOrderby = -33,
CodesMissingKey = -34,
CodesOutOfArea = -35,
CodesConceptNoMatch = -36,
CodesHashArrayNoMatch = -37,
CodesNoDefinitions = -38,
CodesWrongType = -39,
CodesEnd = -40,
CodesNoValues = -41,
CodesWrongGrid = -42,
CodesEndOfIndex = -43,
CodesNullIndex = -44,
CodesPrematureEndOfFile = -45,
CodesInternalArrayTooSmall = -46,
CodesMessageTooLarge = -47,
CodesConstantField = -48,
CodesSwitchNoMatch = -49,
CodesUnderflow = -50,
CodesMessageMalformed = -51,
CodesCorruptedIndex = -52,
CodesInvalidBpv = -53,
CodesDifferentEdition = -54,
CodesValueDifferent = -55,
CodesInvalidKeyValue = -56,
CodesStringTooSmall = -57,
CodesWrongConversion = -58,
CodesMissingBufrEntry = -59,
CodesNullPointer = -60,
CodesAttributeClash = -61,
CodesTooManyAttributes = -62,
CodesAttributeNotFound = -63,
CodesUnsupportedEdition = -64,
CodesOutOfRange = -65,
CodesWrongBitmapSize = -66,
CodesFunctionalityNotEnabled = -67,
}
Expand description
Errors returned by internal ecCodes library functions. Copied directly from the ecCodes API.
Variants§
CodesSuccess = 0
No error
CodesEndOfFile = -1
End of resource reached
CodesInternalError = -2
Internal error
CodesBufferTooSmall = -3
Passed buffer is too small
CodesNotImplemented = -4
Function not yet implemented
Codes7777NotFound = -5
Missing 7777 at end of message
CodesArrayTooSmall = -6
Passed array is too small
CodesFileNotFound = -7
File not found
CodesCodeNotFoundInTable = -8
Code not found in code table
CodesWrongArraySize = -9
Array size mismatch
CodesNotFound = -10
Key/value not found
CodesIoProblem = -11
Input output problem
CodesInvalidMessage = -12
Message invalid
CodesDecodingError = -13
Decoding invalid
CodesEncodingError = -14
Encoding invalid
CodesNoMoreInSet = -15
Code cannot unpack because of string too small
CodesGeocalculusProblem = -16
Problem with calculation of geographic attributes
CodesOutOfMemory = -17
Memory allocation error
CodesReadOnly = -18
Value is read only
CodesInvalidArgument = -19
Invalid argument
CodesNullHandle = -20
Null handle
CodesInvalidSectionNumber = -21
Invalid section number
CodesValueCannotBeMissing = -22
Value cannot be missing
CodesWrongLength = -23
Wrong message length
CodesInvalidType = -24
Invalid key type
CodesWrongStep = -25
Unable to set step
CodesWrongStepUnit = -26
Wrong units for step (step must be integer)
CodesInvalidFile = -27
Invalid file id
CodesInvalidGrib = -28
Invalid grib id
CodesInvalidIndex = -29
Invalid index id
CodesInvalidIterator = -30
Invalid iterator id
CodesInvalidKeysIterator = -31
Invalid keys iterator id
CodesInvalidNearest = -32
Invalid nearest id
CodesInvalidOrderby = -33
Invalid order by
CodesMissingKey = -34
Missing a key from the fieldset
CodesOutOfArea = -35
The point is out of the grid area
CodesConceptNoMatch = -36
Concept no match
CodesHashArrayNoMatch = -37
Hash array no match
CodesNoDefinitions = -38
Definitions files not found
CodesWrongType = -39
Wrong type while packing
CodesEnd = -40
End of resource
CodesNoValues = -41
Unable to code a field without values
CodesWrongGrid = -42
Grid description is wrong or inconsistent
CodesEndOfIndex = -43
End of index reached
CodesNullIndex = -44
Null index
CodesPrematureEndOfFile = -45
End of resource reached when reading message
CodesInternalArrayTooSmall = -46
An internal array is too small
CodesMessageTooLarge = -47
Message is too large for the current architecture
CodesConstantField = -48
Constant field
CodesSwitchNoMatch = -49
Switch unable to find a matching case
CodesUnderflow = -50
Underflow
CodesMessageMalformed = -51
Message malformed
CodesCorruptedIndex = -52
Index is corrupted
CodesInvalidBpv = -53
Invalid number of bits per value
CodesDifferentEdition = -54
Edition of two messages is different
CodesValueDifferent = -55
Value is different
CodesInvalidKeyValue = -56
Invalid key value
CodesStringTooSmall = -57
String is smaller than requested
CodesWrongConversion = -58
Wrong type conversion
CodesMissingBufrEntry = -59
Missing BUFR table entry for descriptor
CodesNullPointer = -60
Null pointer
CodesAttributeClash = -61
Attribute is already present = cannot add
CodesTooManyAttributes = -62
Too many attributes. Increase MAX_ACCESSOR_ATTRIBUTES
CodesAttributeNotFound = -63
Attribute not found
CodesUnsupportedEdition = -64
Edition not supported
CodesOutOfRange = -65
Value out of coding range
CodesWrongBitmapSize = -66
Size of bitmap is incorrect
CodesFunctionalityNotEnabled = -67
Functionality not enabled
Trait Implementations§
source§impl Clone for CodesInternal
impl Clone for CodesInternal
source§fn clone(&self) -> CodesInternal
fn clone(&self) -> CodesInternal
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CodesInternal
impl Debug for CodesInternal
source§impl Display for CodesInternal
impl Display for CodesInternal
source§impl Error for CodesInternal
impl Error for CodesInternal
1.30.0 · 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<CodesInternal> for CodesError
impl From<CodesInternal> for CodesError
source§fn from(source: CodesInternal) -> Self
fn from(source: CodesInternal) -> Self
source§impl FromPrimitive for CodesInternal
impl FromPrimitive for CodesInternal
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl Hash for CodesInternal
impl Hash for CodesInternal
source§impl Ord for CodesInternal
impl Ord for CodesInternal
source§fn cmp(&self, other: &CodesInternal) -> Ordering
fn cmp(&self, other: &CodesInternal) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CodesInternal
impl PartialEq for CodesInternal
source§fn eq(&self, other: &CodesInternal) -> bool
fn eq(&self, other: &CodesInternal) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CodesInternal
impl PartialOrd for CodesInternal
source§fn partial_cmp(&self, other: &CodesInternal) -> Option<Ordering>
fn partial_cmp(&self, other: &CodesInternal) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more