diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-29 16:42:38 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-29 16:42:38 +0200 |
commit | 21d26132877990d7beac118b33e336aaed395234 (patch) | |
tree | d970f8115b00b5125ffc4aef89c0a2dd721c0ee8 /src/include | |
parent | 5aebc70da6524d3b27ad4f93a66ba70dbe64fab1 (diff) | |
download | exchange-21d26132877990d7beac118b33e336aaed395234.tar.xz |
first sketch at db module implementation for #3887
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_error_codes.h | 65 |
1 files changed, 55 insertions, 10 deletions
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index 3c48a6d44..84240c295 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -128,6 +128,17 @@ enum TALER_ErrorCode */ TALER_EC_PARAMETER_MALFORMED = 1009, + /** + * The exchange failed to obtain the transaction history of the + * given coin from the database while generating an insufficient + * funds errors. This can happen during /deposit or /payback requests. + * This response is provided with HTTP status code + * MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_COIN_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1010, + + + /* ********** request-specific error codes ************* */ /** @@ -230,7 +241,7 @@ enum TALER_ErrorCode /** * The exchange failed to obtain the transaction history of the * given reserve from the database while generating an insufficient - * funds errors. + * funds error. * This response is provided with HTTP status code * MHD_HTTP_INTERNAL_SERVER_ERROR. */ @@ -350,15 +361,6 @@ enum TALER_ErrorCode TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_CONTRACT_HASH_CONFLICT = 1211, /** - * The exchange failed to obtain the transaction history of the - * given coin from the database while generating an insufficient - * funds errors. - * This response is provided with HTTP status code - * MHD_HTTP_INTERNAL_SERVER_ERROR. - */ - TALER_EC_DEPOSIT_HISTORY_DB_ERROR_INSUFFICIENT_FUNDS = 1212, - - /** * The exchange detected that the given account number * is invalid for the selected wire format type. * This response is provided @@ -852,6 +854,49 @@ enum TALER_ErrorCode */ TALER_EC_PAYBACK_DENOMINATION_SIGNATURE_INVALID = 1852, + /** + * The exchange failed to access its own database about reserves. + * This response is provided with HTTP status code + * MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PAYBACK_DB_FETCH_FAILED = 1853, + + /** + * The exchange could not find the corresponding withdraw operation. + * The request is denied. This response is provided with an HTTP + * status code of MHD_HTTP_NOT_FOUND. + */ + TALER_EC_PAYBACK_WITHDRAW_NOT_FOUND = 1854, + + /** + * The exchange obtained an internally inconsistent transaction + * history for the given coin. This response is provided with HTTP + * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PAYBACK_HISTORY_DB_ERROR = 1855, + + /** + * The exchange failed to store information about the payback to be + * performed in the database. This response is provided with HTTP + * status code MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PAYBACK_DB_PUT_FAILED = 1856, + + /** + * The coin's remaining balance is zero. The request is denied. + * This response is provided with an HTTP status code of + * MHD_HTTP_FORBIDDEN. + */ + TALER_EC_PAYBACK_COIN_BALANCE_ZERO = 1857, + + /** + * The exchange failed to reproduce the coin's blinding. + * This response is provided with an HTTP status code of + * MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PAYBACK_BLINDING_FAILED = 1858, + + /* *********** Merchant backend error codes ********* */ |