summaryrefslogtreecommitdiff
path: root/src/include/taler_error_codes.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-29 14:21:49 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-29 14:21:49 +0200
commit0ba88250a9760c3ba6473ed90a8cdaed0cf2c49a (patch)
treeab3fd80305fac6372b752c5f8062079b6e845644 /src/include/taler_error_codes.h
parentba95b0525644176c8d1ba7ac183791af74011a48 (diff)
downloadexchange-0ba88250a9760c3ba6473ed90a8cdaed0cf2c49a.tar.gz
exchange-0ba88250a9760c3ba6473ed90a8cdaed0cf2c49a.tar.bz2
exchange-0ba88250a9760c3ba6473ed90a8cdaed0cf2c49a.zip
expand set of EC codes to better cover merchant /refund (likely still not perfect)
Diffstat (limited to 'src/include/taler_error_codes.h')
-rw-r--r--src/include/taler_error_codes.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index fd9387fb7..5e9988ec7 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -137,6 +137,14 @@ enum TALER_ErrorCode
*/
TALER_EC_COIN_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1010,
+ /**
+ * Internal logic error. Some server-side function
+ * failed that really should not.
+ * This response is provided with HTTP status code
+ * MHD_HTTP_INTERNAL_SERVER_ERROR.
+ */
+ TALER_EC_INTERNAL_LOGIC_ERROR = 1011,
+
/* ********** request-specific error codes ************* */
@@ -1284,9 +1292,17 @@ enum TALER_ErrorCode
TALER_EC_REFUND_INCONSISTENT_AMOUNT = 2602,
/**
- * The hashed contract term doesn't have any refund associated yet.
+ * The backend encountered an error while trying to retrieve the
+ * payment data from database. Likely to be an internal error.
*/
- TALER_EC_REFUND_H_CONTRACT_TERMS_UNKNOWN = 2603,
+ TALER_EC_REFUND_LOOKUP_DB_ERROR = 2603,
+
+ /**
+ * The backend encountered an error while trying to retrieve the
+ * payment data from database. Likely to be an internal error.
+ */
+ TALER_EC_REFUND_MERCHANT_DB_COMMIT_ERROR = 2604,
+
/* ********** /test API error codes ************* */