[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: more error codes
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: more error codes |
Date: |
Mon, 06 Apr 2020 19:49:39 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 9eb741b0 more error codes
9eb741b0 is described below
commit 9eb741b05bee65dc3d98bc91fb589e9b449ba789
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Apr 6 19:49:37 2020 +0200
more error codes
---
src/include/taler_error_codes.h | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index cbf01b8f..44c29ca7 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -124,6 +124,12 @@ enum TALER_ErrorCode
*/
TALER_EC_VERSION_MALFORMED = 14,
+ /**
+ * The client-side experienced an internal failure. Generated as an
+ * error on the client side.
+ */
+ TALER_EC_CLIENT_INTERNAL_FAILURE = 15,
+
/**
* The exchange failed to even just initialize its connection to the
* database. This response is provided with HTTP status code
@@ -1136,6 +1142,12 @@ enum TALER_ErrorCode
*/
TALER_EC_PROPOSAL_INSTANCE_CONFIGURATION_LACKS_WIRE = 2002,
+ /**
+ * The merchant failed to provide a meaningful response to a /pay
+ * request. This error is created client-side.
+ */
+ TALER_EC_PAY_MERCHANT_INVALID_RESPONSE = 2100,
+
/**
* The exchange failed to provide a meaningful response to a /deposit
* request. This response is provided with HTTP status code
@@ -1375,6 +1387,12 @@ enum TALER_ErrorCode
*/
TALER_EC_POLL_PAYMENT_CONTRACT_NOT_FOUND = 2250,
+ /**
+ * The response provided by the merchant backend was malformed. This
+ * error is created client-side.
+ */
+ TALER_EC_POLL_PAYMENT_REPLY_MALFORMED = 2251,
+
/**
* We failed to contact the exchange for the /track/transaction
* request. This response is provided with HTTP status code
@@ -1574,11 +1592,17 @@ enum TALER_ErrorCode
/**
* The order provided to the backend uses an amount in a currency that
- * does not match the backend's configuration. Returned as a bad
- * request.
+ * does not match the backend's configuration. Returned with HTTP
+ * status code #MHD_HTTP_BAD_REQUEST.
*/
TALER_EC_PROPOSAL_ORDER_BAD_CURRENCY = 2509,
+ /**
+ * The response provided by the merchant backend was malformed. This
+ * error is created client-side.
+ */
+ TALER_EC_PROPOSAL_REPLY_MALFORMED = 2510,
+
/**
* The frontend gave an unknown order id to issue the refund to.
*/
@@ -1860,6 +1884,12 @@ enum TALER_ErrorCode
*/
TALER_EC_CHECK_PAYMENT_SESSION_SIGNATURE_INVALID = 2915,
+ /**
+ * The response we received from the merchant is malformed. This error
+ * is generated client-side.
+ */
+ TALER_EC_CHECK_PAYMENT_RESPONSE_MALFORMED = 2916,
+
/**
* The signature from the exchange on the deposit confirmation is
* invalid. Returned with a "400 Bad Request" status code.
--
To stop receiving notification emails like this one, please contact
address@hidden.