1 /* This file is part of MED. 2 * 3 * COPYRIGHT (C) 1999 - 2019 EDF R&D, CEA/DEN 4 * MED is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * MED is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with MED. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef MED_ERR 19 #define MED_ERR 20 21 22 #define MED_ERR_UNDEFINED -1 23 24 #define MED_ERR_CREATE -100 25 #define MED_ERR_READ -200 26 #define MED_ERR_WRITE -300 27 #define MED_ERR_CLOSE -400 28 #define MED_ERR_ACCESS -500 29 #define MED_ERR_SELECT -600 30 #define MED_ERR_INIT -700 31 #define MED_ERR_RANGE -800 32 #define MED_ERR_NULL -900 33 #define MED_ERR_NOTNULL -1000 34 #define MED_ERR_OPEN -1100 35 #define MED_ERR_DOESNTEXIST -1200 36 #define MED_ERR_UNRECOGNIZED -1300 37 #define MED_ERR_INVALID -1400 38 #define MED_ERR_DELETE -1500 39 #define MED_ERR_NOTEQUAL -1600 40 #define MED_ERR_EXIST -1700 41 #define MED_ERR_MOUNT -1800 42 #define MED_ERR_UMOUNT -1900 43 #define MED_ERR_ULINK -2100 44 #define MED_ERR_COUNT -2200 45 #define MED_ERR_CALL -2300 46 #define MED_ERR_VISIT -2400 47 #define MED_ERR_COPY -2500 48 #define MED_ERR_USE -2600 49 50 51 52 #define MED_ERR_UNDEFINED_MSG "Erreur indéfinie " 53 #define MED_ERR_CREATE_MSG "Erreur à la création " 54 #define MED_ERR_READ_MSG "Erreur à la lecture " 55 #define MED_ERR_WRITE_MSG "Erreur à l'écriture " 56 #define MED_ERR_CLOSE_MSG "Erreur à la fermeture " 57 #define MED_ERR_ACCESS_MSG "Erreur d'accès " 58 #define MED_ERR_SELECT_MSG "Erreur de sélection " 59 #define MED_ERR_INIT_MSG "Erreur d'initialisation " 60 #define MED_ERR_RANGE_MSG "Erreur de domaine de définition " 61 #define MED_ERR_NULL_MSG "Erreur de valeur attendue nulle " 62 #define MED_ERR_NOTNULL_MSG "Erreur de valeur attendue non nulle " 63 #define MED_ERR_OPEN_MSG "Erreur à l'ouverture " 64 #define MED_ERR_DOESNTEXIST_MSG "Erreur de non existence " 65 #define MED_ERR_UNRECOGNIZED_MSG "Erreur de valeur non reconnue " 66 #define MED_ERR_INVALID_MSG "Erreur de valeur invalide " 67 #define MED_ERR_DELETE_MSG "Erreur de suppression " 68 #define MED_ERR_NOTEQUAL_MSG "Erreur d'égalité " 69 #define MED_ERR_EXIST_MSG "Erreur d'existence " 70 #define MED_ERR_MOUNT_MSG "Erreur au montage de l'objet " 71 #define MED_ERR_UMOUNT_MSG "Erreur au démontage de l'objet " 72 #define MED_ERR_ULINK_MSG "Erreur dans la destruction du lien " 73 #define MED_ERR_COUNT_MSG "Erreur de comptage " 74 #define MED_ERR_CALL_MSG "Erreur d'appel " 75 #define MED_ERR_VISIT_MSG "Erreur d'exploration " 76 #define MED_ERR_COPY_MSG "Erreur de copie " 77 #define MED_ERR_USE_MSG "Erreur d'utilisation " 78 79 80 81 #define MED_ERR_FILE -1 82 #define MED_ERR_MESH -2 83 #define MED_ERR_SUPPORT_MESH -3 84 #define MED_ERR_ENTITY -4 85 #define MED_ERR_STRUCT_ELEMENT -5 86 #define MED_ERR_FAMILY -6 87 #define MED_ERR_GROUP -7 88 #define MED_ERR_LOCALIZATION -8 89 #define MED_ERR_INTERPOLATION -9 90 #define MED_ERR_FIELD -10 91 #define MED_ERR_JOINT -11 92 #define MED_ERR_FILTER -12 93 #define MED_ERR_PROFILE -13 94 #define MED_ERR_SCALAR -14 95 #define MED_ERR_MEMSPACE -15 96 #define MED_ERR_DISKSPACE -16 97 #define MED_ERR_DATASET -17 98 #define MED_ERR_DATAGROUP -18 99 #define MED_ERR_ATTRIBUTE -19 100 #define MED_ERR_PROPERTY -20 101 #define MED_ERR_INTERLACINGMODE -21 102 #define MED_ERR_PARAMETER -22 103 #define MED_ERR_ACCESSMODE -23 104 #define MED_ERR_GEOMETRIC -24 105 #define MED_ERR_DATASPACE -25 106 #define MED_ERR_FILESPACE -26 107 #define MED_ERR_LIBRARY -27 108 #define MED_ERR_API -28 109 #define MED_ERR_STORAGEMODE -29 110 #define MED_ERR_COMPUTINGSTEP -30 111 #define MED_ERR_HDFTYPE -31 112 #define MED_ERR_LINK -32 113 #define MED_ERR_DATATYPE -33 114 #define MED_ERR_MEDDATATYPE -34 115 #define MED_ERR_CONNECTIVITYMODE -35 116 #define MED_ERR_GRIDTYPE -36 117 #define MED_ERR_AXISTYPE -37 118 #define MED_ERR_EQUIVALENCE -38 119 #define MED_ERR_SUBDOMAINJOINT -39 120 #define MED_ERR_STRUCT -40 121 #define MED_ERR_INTERP -41 122 #define MED_ERR_MESHTYPE -42 123 #define MED_ERR_CORRESPONDENCE -43 124 #define MED_ERR_DIMENSION -44 125 #define MED_ERR_FILEVERSION -45 126 #define MED_ERR_MEMFILE -46 127 #define MED_ERR_CLASS -47 128 129 #define MED_ERR_FILE_MSG "du fichier " 130 #define MED_ERR_MESH_MSG "du maillage " 131 #define MED_ERR_SUPPORT_MESH_MSG "du maillage support " 132 #define MED_ERR_ENTITY_MSG "de l'entité " 133 #define MED_ERR_STRUCT_ELEMENT_MSG "de l'élément de structure " 134 #define MED_ERR_FAMILY_MSG "de la famille " 135 #define MED_ERR_GROUP_MSG "du groupe " 136 #define MED_ERR_LOCALIZATION_MSG "de la localisation des points d'intégration " 137 #define MED_ERR_INTERPOLATION_MSG "de la fonction d'interpolation " 138 #define MED_ERR_FIELD_MSG "du champ résultat " 139 #define MED_ERR_JOINT_MSG "du joint " 140 #define MED_ERR_FILTER_MSG "du filtre " 141 #define MED_ERR_PROFILE_MSG "du profil " 142 #define MED_ERR_SCALAR_MSG "des valeurs scalaires " 143 #define MED_ERR_LIBRARY_MSG "du numéro de version de la librairie " 144 #define MED_ERR_MEMSPACE_MSG "du memspace " 145 #define MED_ERR_DISKSPACE_MSG "du dataspace " 146 #define MED_ERR_DATASET_MSG "du dataset " 147 #define MED_ERR_DATAGROUP_MSG "du groupe " 148 #define MED_ERR_ATTRIBUTE_MSG "d'attribut " 149 #define MED_ERR_PROPERTY_MSG "de propriété " 150 #define MED_ERR_INTERLACINGMODE_MSG "d'entrelacement " 151 #define MED_ERR_PARAMETER_MSG "du paramètre " 152 #define MED_ERR_ACCESSMODE_MSG "du mode d'accès " 153 #define MED_ERR_GEOMETRIC_MSG "du type géométrique " 154 #define MED_ERR_DATASPACE_MSG "du dataspace " 155 #define MED_ERR_FILESPACE_MSG "du filespace " 156 #define MED_ERR_API_MSG "de l'API " 157 #define MED_ERR_STORAGEMODE_MSG "de mode de stockage " 158 #define MED_ERR_COMPUTINGSTEP_MSG "de l'étape de calcul " 159 #define MED_ERR_HDFTYPE_MSG "du type hdf " 160 #define MED_ERR_LINK_MSG "du lien " 161 #define MED_ERR_DATATYPE_MSG "du datatype " 162 #define MED_ERR_MEDDATATYPE_MSG "du datatatype med demandé " 163 #define MED_ERR_CONNECTIVITYMODE_MSG "du mode de connectivité " 164 #define MED_ERR_GRIDTYPE_MSG "du type de grille " 165 #define MED_ERR_AXISTYPE_MSG "du type de repère " 166 #define MED_ERR_EQUIVALENCE_MSG "de l'équivalence " 167 #define MED_ERR_SUBDOMAINJOINT_MSG "de joint " 168 #define MED_ERR_STRUCT_MSG "de l'élément de structure " 169 #define MED_ERR_INTERP_MSG "de l'interpolation " 170 #define MED_ERR_PARAM_MSG "du parametre " 171 #define MED_ERR_MESHTYPE_MSG "du type de maillage" 172 #define MED_ERR_CORRESPONDENCE_MSG "de la correspondance " 173 #define MED_ERR_DIMENSION_MSG "de dimension" 174 #define MED_ERR_FILEVERSION_MSG "de version de fichier" 175 #define MED_ERR_MEMFILE_MSG "de fichier mémoire" 176 #define MED_ERR_CLASS_MSG "du type d'objet MED" 177 178 /*COMPLEMENTS*/ 179 #define MED_ERR_VALUE_MSG "de valeur " 180 #define MED_ERR_SIZE_MSG "de taille " 181 #define MED_ERR_GSIZE_MSG "de taille trop grande " 182 #define MED_ERR_LSIZE_MSG "de taille trop petite " 183 #define MED_ERR_ID_MSG "d'identifiant " 184 #define MED_ERR_ARRAY_MSG "(tableau) " 185 #define MED_ERR_MODE_MSG "en mode " 186 #define MED_ERR_PARALLEL_MSG "en parallelisme " 187 #define MED_ERR_ACCESS2_MSG "du mode d'accès " 188 #define MED_ERR_FORBIDDEN_MSG "interdit(e) " 189 #define MED_ERR_TYPEOF_MSG "de type " 190 #define MED_ERR_NAME_MSG "de nom " 191 #define MED_ERR_INTERNAL_MSG "interne " 192 #define MED_ERR_NBR_MSG "nombre de " 193 194 195 /* Pour générer la table : 196 for i in `grep 'MED_ERR_' med_err.h | grep -v 'MSG' | awk '{print $2}' `; do echo "{ $i , ${i}_MSG },"; done 197 */ 198 /* typedef struct _med_err_tab_entry { */ 199 /* int errno; */ 200 /* const char* const mesg; */ 201 /* } med_err_tab_entry; */ 202 203 /* med_err_tab_entry MED_TAB_ERR[]={ */ 204 /* { MED_ERR_UNDEFINED , MED_ERR_UNDEFINED_MSG }, */ 205 /* { MED_ERR_CREATE , MED_ERR_CREATE_MSG }, */ 206 /* { MED_ERR_READ , MED_ERR_READ_MSG }, */ 207 /* { MED_ERR_WRITE , MED_ERR_WRITE_MSG }, */ 208 /* { MED_ERR_CLOSE , MED_ERR_CLOSE_MSG }, */ 209 /* { MED_ERR_ACCESS , MED_ERR_ACCESS_MSG }, */ 210 /* { MED_ERR_SELECT , MED_ERR_SELECT_MSG }, */ 211 /* { MED_ERR_INIT , MED_ERR_INIT_MSG }, */ 212 /* { MED_ERR_FILE , MED_ERR_FILE_MSG }, */ 213 /* { MED_ERR_MESH , MED_ERR_MESH_MSG }, */ 214 /* { MED_ERR_SUPPORT_MESH , MED_ERR_SUPPORT_MESH_MSG }, */ 215 /* { MED_ERR_ENTITY , MED_ERR_ENTITY_MSG }, */ 216 /* { MED_ERR_STRUCT_ELEMENT , MED_ERR_STRUCT_ELEMENT_MSG }, */ 217 /* { MED_ERR_FAMILY , MED_ERR_FAMILY_MSG }, */ 218 /* { MED_ERR_GROUP , MED_ERR_GROUP_MSG }, */ 219 /* { MED_ERR_LOCALIZATION , MED_ERR_LOCALIZATION_MSG }, */ 220 /* { MED_ERR_INTERPOLATION , MED_ERR_INTERPOLATION_MSG }, */ 221 /* { MED_ERR_FIELD , MED_ERR_FIELD_MSG }, */ 222 /* { MED_ERR_JOINT , MED_ERR_JOINT_MSG }, */ 223 /* { MED_ERR_FILTER , MED_ERR_FILTER_MSG }, */ 224 /* { MED_ERR_PROFILE , MED_ERR_PROFILE_MSG }, */ 225 /* { MED_ERR_SCALAR , MED_ERR_SCALAR_MSG }, */ 226 /* { MED_ERR_MEMSPACE , MED_ERR_MEMSPACE_MSG }, */ 227 /* { MED_ERR_DISKSPACE , MED_ERR_DISKSPACE_MSG }, */ 228 /* { MED_ERR_DATASET , MED_ERR_DATASET_MSG }, */ 229 /* { MED_ERR_DATAGROUP , MED_ERR_DATAGROUP_MSG }, */ 230 /* { MED_ERR_ATTRIBUTE , MED_ERR_ATTRIBUTE_MSG } */ 231 /* } */ 232 233 #endif 234