eccodes: Error codes

eccodes

- Main Page
- C Interface
- F90 Interface
- Python Interface

All Data Structures Namespaces Files Functions Groups Pages
Macros
Error codes

## Macros
#define | CODES_SUCCESS 0
| No error. More...
#define | CODES_END_OF_FILE -1
| End of resource reached. More...
#define | CODES_INTERNAL_ERROR -2
| Internal error. More...
#define | CODES_BUFFER_TOO_SMALL -3
| Passed buffer is too small. More...
#define | CODES_NOT_IMPLEMENTED -4
| Function not yet implemented. More...
#define | CODES_7777_NOT_FOUND -5
| Missing 7777 at end of message. More...
#define | CODES_ARRAY_TOO_SMALL -6
| Passed array is too small. More...
#define | CODES_FILE_NOT_FOUND -7
| File not found. More...
#define | CODES_CODE_NOT_FOUND_IN_TABLE -8
| Code not found in code table. More...
#define | CODES_WRONG_ARRAY_SIZE -9
| Array size mismatch. More...
#define | CODES_NOT_FOUND -10
| Key/value not found. More...
#define | CODES_IO_PROBLEM -11
| Input output problem. More...
#define | CODES_INVALID_MESSAGE -12
| Message invalid. More...
#define | CODES_DECODING_ERROR -13
| Decoding invalid. More...
#define | CODES_ENCODING_ERROR -14
| Encoding invalid. More...
#define | CODES_NO_MORE_IN_SET -15
| Code cannot unpack because of string too small. More...
#define | CODES_GEOCALCULUS_PROBLEM -16
| Problem with calculation of geographic attributes. More...
#define | CODES_OUT_OF_MEMORY -17
| Memory allocation error. More...
#define | CODES_READ_ONLY -18
| Value is read only. More...
#define | CODES_INVALID_ARGUMENT -19
| Invalid argument. More...
#define | CODES_NULL_HANDLE -20
| Null handle. More...
#define | CODES_INVALID_SECTION_NUMBER -21
| Invalid section number. More...
#define | CODES_VALUE_CANNOT_BE_MISSING -22
| Value cannot be missing. More...
#define | CODES_WRONG_LENGTH -23
| Wrong message length. More...
#define | CODES_INVALID_TYPE -24
| Invalid key type. More...
#define | CODES_WRONG_STEP -25
| Unable to set step. More...
#define | CODES_WRONG_STEP_UNIT -26
| Wrong units for step (step must be integer) More...
#define | CODES_INVALID_FILE -27
| Invalid file id. More...
#define | CODES_INVALID_GRIB -28
| Invalid grib id. More...
#define | CODES_INVALID_INDEX -29
| Invalid index id. More...
#define | CODES_INVALID_ITERATOR -30
| Invalid iterator id. More...
#define | CODES_INVALID_KEYS_ITERATOR -31
| Invalid keys iterator id. More...
#define | CODES_INVALID_NEAREST -32
| Invalid nearest id. More...
#define | CODES_INVALID_ORDERBY -33
| Invalid order by. More...
#define | CODES_MISSING_KEY -34
| Missing a key from the fieldset. More...
#define | CODES_OUT_OF_AREA -35
| The point is out of the grid area. More...
#define | CODES_CONCEPT_NO_MATCH -36
| Concept no match. More...
#define | CODES_HASH_ARRAY_NO_MATCH -37
| Hash array no match. More...
#define | CODES_NO_DEFINITIONS -38
| Definitions files not found. More...
#define | CODES_WRONG_TYPE -39
| Wrong type while packing. More...
#define | CODES_END -40
| End of resource. More...
#define | CODES_NO_VALUES -41
| Unable to code a field without values. More...
#define | CODES_WRONG_GRID -42
| Grid description is wrong or inconsistent. More...
#define | CODES_END_OF_INDEX -43
| End of index reached. More...
#define | CODES_NULL_INDEX -44
| Null index. More...
#define | CODES_PREMATURE_END_OF_FILE -45
| End of resource reached when reading message. More...
#define | CODES_INTERNAL_ARRAY_TOO_SMALL -46
| An internal array is too small. More...
#define | CODES_MESSAGE_TOO_LARGE -47
| Message is too large for the current architecture. More...
#define | CODES_CONSTANT_FIELD -48
| Constant field. More...
#define | CODES_SWITCH_NO_MATCH -49
| Switch unable to find a matching case. More...
#define | CODES_UNDERFLOW -50
| Underflow. More...
#define | CODES_MESSAGE_MALFORMED -51
| Message malformed. More...
#define | CODES_CORRUPTED_INDEX -52
| Index is corrupted. More...
#define | CODES_INVALID_BPV -53
| Invalid number of bits per value. More...
#define | CODES_DIFFERENT_EDITION -54
| Edition of two messages is different. More...
#define | CODES_VALUE_DIFFERENT -55
| Value is different. More...
#define | CODES_INVALID_KEY_VALUE -56
| Invalid key value. More...
#define | CODES_STRING_TOO_SMALL -57
| String is smaller than requested. More...
#define | CODES_WRONG_CONVERSION -58
| Wrong type conversion. More...
#define | CODES_MISSING_BUFR_ENTRY -59
| Missing BUFR table entry for descriptor. More...
#define | CODES_NULL_POINTER -60
| Null pointer. More...
#define | CODES_ATTRIBUTE_CLASH -61
| Attribute is already present, cannot add. More...
#define | CODES_TOO_MANY_ATTRIBUTES -62
| Too many attributes. More...
#define | CODES_ATTRIBUTE_NOT_FOUND -63
| Attribute not found. More...
#define | CODES_UNSUPPORTED_EDITION -64
| Edition not supported. More...
#define | CODES_OUT_OF_RANGE -65
| Value out of coding range. More...
#define | CODES_WRONG_BITMAP_SIZE -66
| Size of bitmap is incorrect. More...

## Detailed Description

Error codes returned by the eccodes functions.

## Macro Definition Documentation

#define CODES_7777_NOT_FOUND -5

Missing 7777 at end of message.

#define CODES_ARRAY_TOO_SMALL -6

Passed array is too small.

#define CODES_ATTRIBUTE_CLASH -61

Attribute is already present, cannot add.

#define CODES_ATTRIBUTE_NOT_FOUND -63

Attribute not found.

#define CODES_BUFFER_TOO_SMALL -3

Passed buffer is too small.

#define CODES_CODE_NOT_FOUND_IN_TABLE -8

Code not found in code table.

#define CODES_CONCEPT_NO_MATCH -36

Concept no match.

#define CODES_CONSTANT_FIELD -48

Constant field.

#define CODES_CORRUPTED_INDEX -52

Index is corrupted.

#define CODES_DECODING_ERROR -13

Decoding invalid.

#define CODES_DIFFERENT_EDITION -54

Edition of two messages is different.

#define CODES_ENCODING_ERROR -14

Encoding invalid.

#define CODES_END -40

End of resource.

#define CODES_END_OF_FILE -1

End of resource reached.

#define CODES_END_OF_INDEX -43

End of index reached.

#define CODES_FILE_NOT_FOUND -7

File not found.

#define CODES_GEOCALCULUS_PROBLEM -16

Problem with calculation of geographic attributes.

#define CODES_HASH_ARRAY_NO_MATCH -37

Hash array no match.

#define CODES_INTERNAL_ARRAY_TOO_SMALL -46

An internal array is too small.

#define CODES_INTERNAL_ERROR -2

Internal error.

#define CODES_INVALID_ARGUMENT -19

Invalid argument.

#define CODES_INVALID_BPV -53

Invalid number of bits per value.

#define CODES_INVALID_FILE -27

Invalid file id.

#define CODES_INVALID_GRIB -28

Invalid grib id.

#define CODES_INVALID_INDEX -29

Invalid index id.

#define CODES_INVALID_ITERATOR -30

Invalid iterator id.

#define CODES_INVALID_KEY_VALUE -56

Invalid key value.

#define CODES_INVALID_KEYS_ITERATOR -31

Invalid keys iterator id.

#define CODES_INVALID_MESSAGE -12

Message invalid.

#define CODES_INVALID_NEAREST -32

Invalid nearest id.

#define CODES_INVALID_ORDERBY -33

Invalid order by.

#define CODES_INVALID_SECTION_NUMBER -21

Invalid section number.

#define CODES_INVALID_TYPE -24

Invalid key type.

#define CODES_IO_PROBLEM -11

Input output problem.

#define CODES_MESSAGE_MALFORMED -51

Message malformed.

#define CODES_MESSAGE_TOO_LARGE -47

Message is too large for the current architecture.

#define CODES_MISSING_BUFR_ENTRY -59

Missing BUFR table entry for descriptor.

#define CODES_MISSING_KEY -34

Missing a key from the fieldset.

#define CODES_NO_DEFINITIONS -38

Definitions files not found.

#define CODES_NO_MORE_IN_SET -15

Code cannot unpack because of string too small.

#define CODES_NO_VALUES -41

Unable to code a field without values.

#define CODES_NOT_FOUND -10

Key/value not found.

#define CODES_NOT_IMPLEMENTED -4

Function not yet implemented.

#define CODES_NULL_HANDLE -20

Null handle.

#define CODES_NULL_INDEX -44

Null index.

#define CODES_NULL_POINTER -60

Null pointer.

#define CODES_OUT_OF_AREA -35

The point is out of the grid area.

#define CODES_OUT_OF_MEMORY -17

Memory allocation error.

#define CODES_OUT_OF_RANGE -65

Value out of coding range.

#define CODES_PREMATURE_END_OF_FILE -45

End of resource reached when reading message.

#define CODES_READ_ONLY -18

Value is read only.

#define CODES_STRING_TOO_SMALL -57

String is smaller than requested.

#define CODES_SUCCESS 0

No error.

#define CODES_SWITCH_NO_MATCH -49

Switch unable to find a matching case.

#define CODES_TOO_MANY_ATTRIBUTES -62

Too many attributes.

Increase MAX_ACCESSOR_ATTRIBUTES

#define CODES_UNDERFLOW -50

Underflow.

#define CODES_UNSUPPORTED_EDITION -64

Edition not supported.

#define CODES_VALUE_CANNOT_BE_MISSING -22

Value cannot be missing.

#define CODES_VALUE_DIFFERENT -55

Value is different.

#define CODES_WRONG_ARRAY_SIZE -9

Array size mismatch.

#define CODES_WRONG_BITMAP_SIZE -66

Size of bitmap is incorrect.

#define CODES_WRONG_CONVERSION -58

Wrong type conversion.

#define CODES_WRONG_GRID -42

Grid description is wrong or inconsistent.

#define CODES_WRONG_LENGTH -23

Wrong message length.

#define CODES_WRONG_STEP -25

Unable to set step.

#define CODES_WRONG_STEP_UNIT -26

Wrong units for step (step must be integer)

#define CODES_WRONG_TYPE -39

Wrong type while packing.