digitizer_error_codes.h (1314B)
1 /* 2 This file is part of TALER cash2ecash 3 Copyright (C) 2026 GNUnet e.V. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU Affero General Public License as 7 published by the Free Software Foundation, either version 3 of the 8 License, or (at your option) 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 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU Affero General Public License for more details. 15 16 You should have received a copy of the GNU Affero General Public License 17 along with this program. If not, see <https://www.gnu.org/licenses/>. 18 */ 19 20 /** 21 * @file error_codes.h 22 * @brief error codes for Cash Digitizer 23 * @author Reto Tellenbach 24 */ 25 26 #ifndef ERROR_CODES_H 27 #define ERROR_CODES_H 28 29 /** 30 * Taler client Cash Digitizer errors. 31 */ 32 enum DIGITIZER_ErrorCode 33 { 34 /** 35 * indicate success (no error) 36 */ 37 DIGITIZER_EC_NONE = 0, 38 39 /** 40 * non specific fail 41 */ 42 DIGITIZER_EC_GENERIC = 1, 43 44 /** 45 * Termina Error 46 * Incompatible currency, from Digitizer and Bank 47 */ 48 DIGITIZER_EC_TERMINAL_INCOMPATIBLE_CURRENCY = 10000 49 }; 50 51 #endif