1 /*-------------------------------------------------------------------- 2 * 3 * Copyright (c) 1991-2021 by the GMT Team (https://www.generic-mapping-tools.org/team.html) 4 * See LICENSE.TXT file for copying and redistribution conditions. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU Lesser General Public License as published by 8 * the Free Software Foundation; version 3 or any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * Contact info: www.generic-mapping-tools.org 16 *--------------------------------------------------------------------*/ 17 18 /* 19 * Include file for GMT API error codes 20 * 21 * Author: Paul Wessel 22 * Date: 22-JUN-2012 23 * Version: 6 API 24 */ 25 26 /*! 27 * \file gmt_error_codes.h 28 * \brief Include file for GMT API error codes 29 */ 30 31 #ifndef GMT_ERROR_CODES_H 32 #define GMT_ERROR_CODES_H 33 34 #include "declspec.h" 35 /* External array with error descriptions */ 36 EXTERN_MSC const char* gmt_api_error_string[]; 37 38 enum Gmt_api_error_code { 39 GMT_OK = 0, 40 GMT_WRONG_MATRIX_SHAPE, 41 GMT_ACCESS_NOT_ENABLED, 42 GMT_ARGV_LIST_NULL, 43 GMT_ARG_IS_NULL, 44 GMT_COUNTER_IS_NEGATIVE, 45 GMT_BAD_GEOMETRY, 46 GMT_BAD_PERMISSION, 47 GMT_CPT_READ_ERROR, 48 GMT_DATA_READ_ERROR, 49 GMT_DATA_WRITE_ERROR, 50 GMT_DIM_TOO_LARGE, 51 GMT_DIM_TOO_SMALL, 52 GMT_ERROR_ON_FCLOSE, 53 GMT_ERROR_ON_FDOPEN, 54 GMT_ERROR_ON_FOPEN, 55 GMT_FILE_NOT_FOUND, 56 GMT_GRID_BC_ERROR, 57 GMT_GRID_READ_ERROR, 58 GMT_GRID_WRITE_ERROR, 59 GMT_ID_TOO_LARGE, 60 GMT_IMAGE_BC_ERROR, 61 GMT_IMAGE_READ_ERROR, 62 GMT_IMAGE_WRITE_ERROR, 63 GMT_IMAGE_NO_DATA, 64 GMT_MEMORY_ERROR, 65 GMT_FREE_EXTERNAL_NOT_ALLOWED, 66 GMT_FREE_WRONG_LEVEL, 67 GMT_LOGGING_ALREADY_ACTIVE, 68 GMT_NOT_A_SESSION, 69 GMT_NOT_MODERN_MODE, 70 GMT_NOT_A_VALID_ARG, 71 GMT_NOT_A_VALID_DIRECTION, 72 GMT_NOT_A_VALID_DIRECTORY, 73 GMT_NOT_A_VALID_DOMAIN, 74 GMT_NOT_A_VALID_FAMILY, 75 GMT_NOT_A_VALID_LOGMODE, 76 GMT_WRONG_FAMILY, 77 GMT_NOT_A_VALID_ID, 78 GMT_NOT_A_VALID_IO_ACCESS, 79 GMT_NOT_A_VALID_IO_MODE, 80 GMT_NOT_A_VALID_IO_SESSION, 81 GMT_NOT_A_VALID_METHOD, 82 GMT_NOT_A_VALID_MODE, 83 GMT_NOT_A_VALID_MODIFIER, 84 GMT_NOT_A_VALID_MODULE, 85 GMT_NOT_A_VALID_OPTION, 86 GMT_NOT_A_VALID_PARAMETER, 87 GMT_NOT_A_VALID_TYPE, 88 GMT_NOT_INPUT_OBJECT, 89 GMT_NOT_OUTPUT_OBJECT, 90 GMT_NO_GRDHEADER, 91 GMT_NO_INPUT, 92 GMT_NO_OUTPUT, 93 GMT_NO_PARAMETERS, 94 GMT_NO_RESOURCES, 95 GMT_NO_CPT, 96 GMT_N_COLS_NOT_SET, 97 GMT_N_COLS_VARY, 98 GMT_N_ROWS_NOT_SET, 99 GMT_OBJECT_NOT_FOUND, 100 GMT_OGR_ONE_TABLE_ONLY, 101 GMT_ONLY_ONE_ALLOWED, 102 GMT_OPTION_EXIST, 103 GMT_OPTION_HISTORY_ERROR, 104 GMT_OPTION_IS_NULL, 105 GMT_OPTION_LIST_NULL, 106 GMT_OPTION_NOT_ALLOWED, 107 GMT_OPTION_NOT_FOUND, 108 GMT_OPTION_SORT_ERROR, 109 GMT_OUTPUT_NOT_SET, 110 GMT_PADDING_NOT_ALLOWED, 111 GMT_PARSE_ERROR, 112 GMT_PROG_NOT_FOUND, 113 GMT_PROJECTION_ERROR, 114 GMT_PTR_IS_NULL, 115 GMT_PTR_NOT_NULL, 116 GMT_PTR_NOT_UNIQUE, 117 GMT_READ_ONCE, 118 GMT_RUNTIME_ERROR, 119 GMT_SIZE_IS_ZERO, 120 GMT_STREAM_NOT_ALLOWED, 121 GMT_SUBSET_NOT_ALLOWED, 122 GMT_VALUE_NOT_SET, 123 GMT_NO_STRINGS_ALLOWED, 124 GMT_WRITTEN_ONCE 125 }; 126 #endif /* GMT_ERROR_CODES_H */ 127