aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_error_codes.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-11-02 14:03:18 +0100
committerChristian Grothoff <christian@grothoff.org>2017-11-02 14:03:18 +0100
commitf3939081d3f0771b8a6a4d96457a23b62fc98afd (patch)
treeac7eec94201bace2fc48e6136934bc88e9c8f8b3 /src/include/taler_error_codes.h
parent0b580d8f6856cd0062db5a4088e98c4b75475d73 (diff)
define more error codes
Diffstat (limited to 'src/include/taler_error_codes.h')
-rw-r--r--src/include/taler_error_codes.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index f4c25c3b4..244eb8ea5 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -58,6 +58,12 @@ enum TALER_ErrorCode
*/
TALER_EC_EXCHANGE_BAD_CONFIGURATION = 4,
+ /**
+ * Internal assertion error.
+ */
+ TALER_EC_INTERNAL_INVARIANT_FAILURE = 5,
+
+
/* ********** generic error codes ************* */
/**
@@ -1435,6 +1441,40 @@ enum TALER_ErrorCode
*/
TALER_EC_TIP_PICKUP_AMOUNT_CHANGED = 2804,
+ /**
+ * We failed to contact the exchange to obtain the denomination
+ * keys. Returned with a response code "failed dependency" (424).
+ */
+ TALER_EC_TIP_PICKUP_EXCHANGE_DOWN = 2805,
+
+ /**
+ * We contacted the exchange to obtain any denomination
+ * keys, but got no valid keys.
+ * Returned with a response code "failed dependency" (424).
+ */
+ TALER_EC_TIP_PICKUP_EXCHANGE_LACKED_KEYS = 2806,
+
+ /**
+ * We contacted the exchange to obtain at least one of
+ * the denomination keys specified in the request.
+ * Returned with a response code "not found" (404).
+ */
+ TALER_EC_TIP_PICKUP_EXCHANGE_LACKED_KEY = 2807,
+
+ /**
+ * We encountered an arithmetic issue totaling up the
+ * amount to withdraw. Returned with a response code
+ * of "bad request".
+ */
+ TALER_EC_TIP_PICKUP_EXCHANGE_AMOUNT_OVERFLOW = 2808,
+
+ /**
+ * The number of planchets specified exceeded the
+ * limit. Returned with a response code
+ * of "bad request".
+ */
+ TALER_EC_TIP_PICKUP_EXCHANGE_TOO_MANY_PLANCHETS = 2809,
+
/* ********** /test API error codes ************* */