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

source§

fn clone(&self) -> CodesInternal

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CodesInternal

source§

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

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

impl Display for CodesInternal

source§

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

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

impl Error for CodesInternal

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

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<CodesInternal> for CodesError

source§

fn from(source: CodesInternal) -> Self

Converts to this type from the input type.
source§

impl FromPrimitive for CodesInternal

source§

fn from_i64(n: i64) -> Option<Self>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_usize(n: usize) -> Option<Self>

Converts a 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl Hash for CodesInternal

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for CodesInternal

source§

fn cmp(&self, other: &CodesInternal) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for CodesInternal

source§

fn eq(&self, other: &CodesInternal) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for CodesInternal

source§

fn partial_cmp(&self, other: &CodesInternal) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for CodesInternal

source§

impl Eq for CodesInternal

source§

impl StructuralPartialEq for CodesInternal

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, 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

default 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>,

§

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>,

§

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.