Enum eccodes::errors::CodesInternal[][src]

pub enum CodesInternal {
Show 68 variants CodesSuccess, CodesEndOfFile, CodesInternalError, CodesBufferTooSmall, CodesNotImplemented, Codes7777NotFound, CodesArrayTooSmall, CodesFileNotFound, CodesCodeNotFoundInTable, CodesWrongArraySize, CodesNotFound, CodesIoProblem, CodesInvalidMessage, CodesDecodingError, CodesEncodingError, CodesNoMoreInSet, CodesGeocalculusProblem, CodesOutOfMemory, CodesReadOnly, CodesInvalidArgument, CodesNullHandle, CodesInvalidSectionNumber, CodesValueCannotBeMissing, CodesWrongLength, CodesInvalidType, CodesWrongStep, CodesWrongStepUnit, CodesInvalidFile, CodesInvalidGrib, CodesInvalidIndex, CodesInvalidIterator, CodesInvalidKeysIterator, CodesInvalidNearest, CodesInvalidOrderby, CodesMissingKey, CodesOutOfArea, CodesConceptNoMatch, CodesHashArrayNoMatch, CodesNoDefinitions, CodesWrongType, CodesEnd, CodesNoValues, CodesWrongGrid, CodesEndOfIndex, CodesNullIndex, CodesPrematureEndOfFile, CodesInternalArrayTooSmall, CodesMessageTooLarge, CodesConstantField, CodesSwitchNoMatch, CodesUnderflow, CodesMessageMalformed, CodesCorruptedIndex, CodesInvalidBpv, CodesDifferentEdition, CodesValueDifferent, CodesInvalidKeyValue, CodesStringTooSmall, CodesWrongConversion, CodesMissingBufrEntry, CodesNullPointer, CodesAttributeClash, CodesTooManyAttributes, CodesAttributeNotFound, CodesUnsupportedEdition, CodesOutOfRange, CodesWrongBitmapSize, CodesFunctionalityNotEnabled,
}
Expand description

Errors returned by internal ecCodes library functions. Copied directly from the ecCodes API.

Variants

CodesSuccess

No error

CodesEndOfFile

End of resource reached

CodesInternalError

Internal error

CodesBufferTooSmall

Passed buffer is too small

CodesNotImplemented

Function not yet implemented

Codes7777NotFound

Missing 7777 at end of message

CodesArrayTooSmall

Passed array is too small

CodesFileNotFound

File not found

CodesCodeNotFoundInTable

Code not found in code table

CodesWrongArraySize

Array size mismatch

CodesNotFound

Key/value not found

CodesIoProblem

Input output problem

CodesInvalidMessage

Message invalid

CodesDecodingError

Decoding invalid

CodesEncodingError

Encoding invalid

CodesNoMoreInSet

Code cannot unpack because of string too small

CodesGeocalculusProblem

Problem with calculation of geographic attributes

CodesOutOfMemory

Memory allocation error

CodesReadOnly

Value is read only

CodesInvalidArgument

Invalid argument

CodesNullHandle

Null handle

CodesInvalidSectionNumber

Invalid section number

CodesValueCannotBeMissing

Value cannot be missing

CodesWrongLength

Wrong message length

CodesInvalidType

Invalid key type

CodesWrongStep

Unable to set step

CodesWrongStepUnit

Wrong units for step (step must be integer)

CodesInvalidFile

Invalid file id

CodesInvalidGrib

Invalid grib id

CodesInvalidIndex

Invalid index id

CodesInvalidIterator

Invalid iterator id

CodesInvalidKeysIterator

Invalid keys iterator id

CodesInvalidNearest

Invalid nearest id

CodesInvalidOrderby

Invalid order by

CodesMissingKey

Missing a key from the fieldset

CodesOutOfArea

The point is out of the grid area

CodesConceptNoMatch

Concept no match

CodesHashArrayNoMatch

Hash array no match

CodesNoDefinitions

Definitions files not found

CodesWrongType

Wrong type while packing

CodesEnd

End of resource

CodesNoValues

Unable to code a field without values

CodesWrongGrid

Grid description is wrong or inconsistent

CodesEndOfIndex

End of index reached

CodesNullIndex

Null index

CodesPrematureEndOfFile

End of resource reached when reading message

CodesInternalArrayTooSmall

An internal array is too small

CodesMessageTooLarge

Message is too large for the current architecture

CodesConstantField

Constant field

CodesSwitchNoMatch

Switch unable to find a matching case

CodesUnderflow

Underflow

CodesMessageMalformed

Message malformed

CodesCorruptedIndex

Index is corrupted

CodesInvalidBpv

Invalid number of bits per value

CodesDifferentEdition

Edition of two messages is different

CodesValueDifferent

Value is different

CodesInvalidKeyValue

Invalid key value

CodesStringTooSmall

String is smaller than requested

CodesWrongConversion

Wrong type conversion

CodesMissingBufrEntry

Missing BUFR table entry for descriptor

CodesNullPointer

Null pointer

CodesAttributeClash

Attribute is already present = cannot add

CodesTooManyAttributes

Too many attributes. Increase MAX_ACCESSOR_ATTRIBUTES

CodesAttributeNotFound

Attribute not found

CodesUnsupportedEdition

Edition not supported

CodesOutOfRange

Value out of coding range

CodesWrongBitmapSize

Size of bitmap is incorrect

CodesFunctionalityNotEnabled

Functionality not enabled

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Feeds this value into the given Hasher. Read more

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

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

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

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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.