mirror of https://github.com/ecmwf/eccodes.git
Add extra error codes
This commit is contained in:
parent
265b4fc49b
commit
e241fdcba6
|
@ -1,3 +1,4 @@
|
||||||
|
integer, parameter,public :: CODES_ASSERTION_FAILURE = -79
|
||||||
integer, parameter,public :: CODES_UNABLE_TO_COMPARE_ACCESSORS = -78
|
integer, parameter,public :: CODES_UNABLE_TO_COMPARE_ACCESSORS = -78
|
||||||
integer, parameter,public :: CODES_TYPE_AND_VALUE_MISMATCH = -77
|
integer, parameter,public :: CODES_TYPE_AND_VALUE_MISMATCH = -77
|
||||||
integer, parameter,public :: CODES_TYPE_MISMATCH = -76
|
integer, parameter,public :: CODES_TYPE_MISMATCH = -76
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
integer, parameter,public :: GRIB_ASSERTION_FAILURE = -79
|
||||||
integer, parameter,public :: GRIB_UNABLE_TO_COMPARE_ACCESSORS = -78
|
integer, parameter,public :: GRIB_UNABLE_TO_COMPARE_ACCESSORS = -78
|
||||||
integer, parameter,public :: GRIB_TYPE_AND_VALUE_MISMATCH = -77
|
integer, parameter,public :: GRIB_TYPE_AND_VALUE_MISMATCH = -77
|
||||||
integer, parameter,public :: GRIB_TYPE_MISMATCH = -76
|
integer, parameter,public :: GRIB_TYPE_MISMATCH = -76
|
||||||
|
|
|
@ -1618,5 +1618,7 @@ Error codes returned by the eccodes functions.
|
||||||
#define CODES_TYPE_AND_VALUE_MISMATCH GRIB_TYPE_AND_VALUE_MISMATCH
|
#define CODES_TYPE_AND_VALUE_MISMATCH GRIB_TYPE_AND_VALUE_MISMATCH
|
||||||
/** Unable to compare accessors */
|
/** Unable to compare accessors */
|
||||||
#define CODES_UNABLE_TO_COMPARE_ACCESSORS GRIB_UNABLE_TO_COMPARE_ACCESSORS
|
#define CODES_UNABLE_TO_COMPARE_ACCESSORS GRIB_UNABLE_TO_COMPARE_ACCESSORS
|
||||||
|
/** Assertion failure */
|
||||||
|
#define CODES_ASSERTION_FAILURE GRIB_ASSERTION_FAILURE
|
||||||
/*! @}*/
|
/*! @}*/
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1812,5 +1812,7 @@ Error codes returned by the grib_api functions.
|
||||||
#define GRIB_TYPE_AND_VALUE_MISMATCH -77
|
#define GRIB_TYPE_AND_VALUE_MISMATCH -77
|
||||||
/** Unable to compare accessors */
|
/** Unable to compare accessors */
|
||||||
#define GRIB_UNABLE_TO_COMPARE_ACCESSORS -78
|
#define GRIB_UNABLE_TO_COMPARE_ACCESSORS -78
|
||||||
|
/** Assertion failure */
|
||||||
|
#define GRIB_ASSERTION_FAILURE -79
|
||||||
/*! @}*/
|
/*! @}*/
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1562,9 +1562,3 @@ typedef struct j2k_encode_helper
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This part is automatically generated by ./errors.pl, do not edit */
|
|
||||||
#ifndef grib_errors_internal_H
|
|
||||||
#define grib_errors_internal_H
|
|
||||||
/** Assertion failure */
|
|
||||||
#define GRIB_ASSERTION_FAILURE 13
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ static const char *errors[] = {
|
||||||
"Type mismatch", /* -76 GRIB_TYPE_MISMATCH */
|
"Type mismatch", /* -76 GRIB_TYPE_MISMATCH */
|
||||||
"Type and value mismatch", /* -77 GRIB_TYPE_AND_VALUE_MISMATCH */
|
"Type and value mismatch", /* -77 GRIB_TYPE_AND_VALUE_MISMATCH */
|
||||||
"Unable to compare accessors", /* -78 GRIB_UNABLE_TO_COMPARE_ACCESSORS */
|
"Unable to compare accessors", /* -78 GRIB_UNABLE_TO_COMPARE_ACCESSORS */
|
||||||
"Assertion failure", /* 2 GRIB_ASSERTION_FAILURE */
|
"Assertion failure", /* -79 GRIB_ASSERTION_FAILURE */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUMBER(a) sizeof(a)/sizeof(a[0])
|
#define NUMBER(a) sizeof(a)/sizeof(a[0])
|
||||||
|
|
|
@ -84,3 +84,4 @@ GRIB_NAME_MISMATCH Name mismatch
|
||||||
GRIB_TYPE_MISMATCH Type mismatch
|
GRIB_TYPE_MISMATCH Type mismatch
|
||||||
GRIB_TYPE_AND_VALUE_MISMATCH Type and value mismatch
|
GRIB_TYPE_AND_VALUE_MISMATCH Type and value mismatch
|
||||||
GRIB_UNABLE_TO_COMPARE_ACCESSORS Unable to compare accessors
|
GRIB_UNABLE_TO_COMPARE_ACCESSORS Unable to compare accessors
|
||||||
|
GRIB_ASSERTION_FAILURE Assertion failure
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
GRIB_ASSERTION_FAILURE Assertion failure
|
|
Loading…
Reference in New Issue