1 /* This part is automatically generated by ./errors.pl, do not edit */ 2 #ifndef grib_errors_H 3 #define grib_errors_H 4 /*! \defgroup errors Error codes 5 Error codes returned by the grib_api functions. 6 */ 7 /*! @{*/ 8 /** No error */ 9 #define GRIB_SUCCESS 0 10 /** End of resource reached */ 11 #define GRIB_END_OF_FILE -1 12 /** Internal error */ 13 #define GRIB_INTERNAL_ERROR -2 14 /** Passed buffer is too small */ 15 #define GRIB_BUFFER_TOO_SMALL -3 16 /** Function not yet implemented */ 17 #define GRIB_NOT_IMPLEMENTED -4 18 /** Missing 7777 at end of message */ 19 #define GRIB_7777_NOT_FOUND -5 20 /** Passed array is too small */ 21 #define GRIB_ARRAY_TOO_SMALL -6 22 /** File not found */ 23 #define GRIB_FILE_NOT_FOUND -7 24 /** Code not found in code table */ 25 #define GRIB_CODE_NOT_FOUND_IN_TABLE -8 26 /** Array size mismatch */ 27 #define GRIB_WRONG_ARRAY_SIZE -9 28 /** Key/value not found */ 29 #define GRIB_NOT_FOUND -10 30 /** Input output problem */ 31 #define GRIB_IO_PROBLEM -11 32 /** Message invalid */ 33 #define GRIB_INVALID_MESSAGE -12 34 /** Decoding invalid */ 35 #define GRIB_DECODING_ERROR -13 36 /** Encoding invalid */ 37 #define GRIB_ENCODING_ERROR -14 38 /** Code cannot unpack because of string too small */ 39 #define GRIB_NO_MORE_IN_SET -15 40 /** Problem with calculation of geographic attributes */ 41 #define GRIB_GEOCALCULUS_PROBLEM -16 42 /** Out of memory */ 43 #define GRIB_OUT_OF_MEMORY -17 44 /** Value is read only */ 45 #define GRIB_READ_ONLY -18 46 /** Invalid argument */ 47 #define GRIB_INVALID_ARGUMENT -19 48 /** Null handle */ 49 #define GRIB_NULL_HANDLE -20 50 /** Invalid section number */ 51 #define GRIB_INVALID_SECTION_NUMBER -21 52 /** Value cannot be missing */ 53 #define GRIB_VALUE_CANNOT_BE_MISSING -22 54 /** Wrong message length */ 55 #define GRIB_WRONG_LENGTH -23 56 /** Invalid key type */ 57 #define GRIB_INVALID_TYPE -24 58 /** Unable to set step */ 59 #define GRIB_WRONG_STEP -25 60 /** Wrong units for step (step must be integer) */ 61 #define GRIB_WRONG_STEP_UNIT -26 62 /** Invalid file id */ 63 #define GRIB_INVALID_FILE -27 64 /** Invalid grib id */ 65 #define GRIB_INVALID_GRIB -28 66 /** Invalid index id */ 67 #define GRIB_INVALID_INDEX -29 68 /** Invalid iterator id */ 69 #define GRIB_INVALID_ITERATOR -30 70 /** Invalid keys iterator id */ 71 #define GRIB_INVALID_KEYS_ITERATOR -31 72 /** Invalid nearest id */ 73 #define GRIB_INVALID_NEAREST -32 74 /** Invalid order by */ 75 #define GRIB_INVALID_ORDERBY -33 76 /** Missing a key from the fieldset */ 77 #define GRIB_MISSING_KEY -34 78 /** The point is out of the grid area */ 79 #define GRIB_OUT_OF_AREA -35 80 /** Concept no match */ 81 #define GRIB_CONCEPT_NO_MATCH -36 82 /** Definitions files not found */ 83 #define GRIB_NO_DEFINITIONS -37 84 /** Wrong type while packing */ 85 #define GRIB_WRONG_TYPE -38 86 /** End of resource */ 87 #define GRIB_END -39 88 /** Unable to code a field without values */ 89 #define GRIB_NO_VALUES -40 90 /** Grid description is wrong or inconsistent */ 91 #define GRIB_WRONG_GRID -41 92 /** End of index reached */ 93 #define GRIB_END_OF_INDEX -42 94 /** Null index */ 95 #define GRIB_NULL_INDEX -43 96 /** End of resource reached when reading message */ 97 #define GRIB_PREMATURE_END_OF_FILE -44 98 /** An internal array is too small */ 99 #define GRIB_INTERNAL_ARRAY_TOO_SMALL -45 100 /** Message is too large for the current architecture */ 101 #define GRIB_MESSAGE_TOO_LARGE -46 102 /** Constant field */ 103 #define GRIB_CONSTANT_FIELD -47 104 /** Switch unable to find a matching case */ 105 #define GRIB_SWITCH_NO_MATCH -48 106 /** Underflow */ 107 #define GRIB_UNDERFLOW -49 108 /** Message malformed */ 109 #define GRIB_MESSAGE_MALFORMED -50 110 /** Index is corrupted */ 111 #define GRIB_CORRUPTED_INDEX -51 112 /** Invalid number of bits per value */ 113 #define GRIB_INVALID_BPV -52 114 /** Edition of two messages is different */ 115 #define GRIB_DIFFERENT_EDITION -53 116 /** Value is different */ 117 #define GRIB_VALUE_DIFFERENT -54 118 /** Invalid key value */ 119 #define GRIB_INVALID_KEY_VALUE -55 120 /*! @}*/ 121 #endif 122